const fakeObjectItemsNum … const exemptObjectIndex … type SampleSpec … type FooSpec … type FooList … func (s *FooList) DeepCopyObject() runtime.Object { … } type SampleList … func (s *SampleList) DeepCopyObject() runtime.Object { … } type RawExtensionList … func (l RawExtensionList) DeepCopyObject() runtime.Object { … } type Foo … func (f Foo) GetObjectKind() schema.ObjectKind { … } func (f Foo) DeepCopyObject() runtime.Object { … } type Sample … func (s *Sample) GetObjectKind() schema.ObjectKind { … } func (s *Sample) DeepCopyObject() runtime.Object { … } func fakeSampleList(numItems int) *SampleList { … } func fakeExtensionList(numItems int) *RawExtensionList { … } func fakeUnstructuredList(numItems int) runtime.Unstructured { … } func fakeFooList(numItems int) *FooList { … } func TestEachList(t *testing.T) { … } func TestExtractList(t *testing.T) { … } func BenchmarkExtractListItem(b *testing.B) { … } func BenchmarkEachListItem(b *testing.B) { … } func BenchmarkExtractListItemWithAlloc(b *testing.B) { … } func BenchmarkEachListItemWithAlloc(b *testing.B) { … }