type fakePodLister … func (l *fakePodLister) List(selector labels.Selector) (ret []*v1.Pod, err error) { … } func (l *fakePodLister) Pods(namespace string) corelisters.PodNamespaceLister { … } func Test_podResourceCollector_Handler(t *testing.T) { … } func Test_podResourceCollector_CollectWithStability(t *testing.T) { … }