type triggerFunc … func triggerFactory(t *testing.T) triggerFunc { … } func handler(rcvCh chan<- *unstructured.Unstructured) *cache.ResourceEventHandlerFuncs { … } func TestFilteredDynamicSharedInformerFactory(t *testing.T) { … } func TestDynamicSharedInformerFactory(t *testing.T) { … } func newUnstructured(apiVersion, kind, namespace, name string) *unstructured.Unstructured { … }