adding a mock.testType to test the generated client code

This commit is contained in:
Chao Xu
2015-12-03 17:01:33 -08:00
parent 775369a8f1
commit 05e3cb8bfb
17 changed files with 2357 additions and 47 deletions

View File

@@ -200,3 +200,7 @@ func GetCodecForObject(obj runtime.Object) (runtime.Codec, error) {
}
return nil, fmt.Errorf("unexpected kind: %v", kind)
}
func NewTestGroup(external, internal unversioned.GroupVersion) TestGroup {
return TestGroup{external, internal}
}