var alwaysReady … type endpointSliceMirroringController … func newController(ctx context.Context, batchPeriod time.Duration) (*fake.Clientset, *endpointSliceMirroringController) { … } func TestSyncEndpoints(t *testing.T) { … } func TestShouldMirror(t *testing.T) { … } func TestEndpointSlicesMirroredForService(t *testing.T) { … } func generateAddresses(num int) []v1.EndpointAddress { … }