func TestRoundtripObjectMeta(t *testing.T) { … } // TestMalformedObjectMetaFields sets a number of different random values and types for all // metadata fields. If json.Unmarshal accepts them, compare that getObjectMeta // gives the same result. Otherwise, drop malformed fields. func TestMalformedObjectMetaFields(t *testing.T) { … } func TestGetObjectMetaWithOptions(t *testing.T) { … } func TestGetObjectMetaNils(t *testing.T) { … } func TestGetObjectMeta(t *testing.T) { … }