type TestCase … // RunTestsOnYAMLData decodes the yaml file from specified path, encodes the object and matches // with expected yaml in specified path func RunTestsOnYAMLData(t *testing.T, tests []TestCase) { … } func decodeYAML(t *testing.T, path string, codec runtime.Codec) runtime.Object { … } func getCodecForGV(codecs serializer.CodecFactory, gv schema.GroupVersion) (runtime.Codec, error) { … } func matchOutputFile(t *testing.T, actual []byte, expectedFilePath string) { … }