func TestNamespaceGetMethod(t *testing.T) { … } func TestNamespaceListMethod(t *testing.T) { … } func TestListerGetMethod(t *testing.T) { … } func TestListerListMethod(t *testing.T) { … } func assertListOrDie(expected, actual []*metav1.PartialObjectMetadata, t *testing.T) { … } func newPartialObjectMetadata(apiVersion, kind, namespace, name string) *metav1.PartialObjectMetadata { … }