var t0 … var t1 … var t2 … var t3 … var t4 … var t5 … var ttNamespace … var ttServiceName … func TestNewServiceNoPods(t *testing.T) { … } func TestNewServiceExistingPods(t *testing.T) { … } func TestPodsAdded(t *testing.T) { … } func TestPodsUpdated(t *testing.T) { … } func TestPodsUpdatedNoOp(t *testing.T) { … } func TestPodDeletedThenAdded(t *testing.T) { … } func TestServiceDeletedThenAdded(t *testing.T) { … } func TestServiceUpdatedNoPodChange(t *testing.T) { … } type tester … func newTester(t *testing.T) *tester { … } func (t *tester) whenComputeEndpointLastChangeTriggerTime( namespace string, service *v1.Service, pods ...*v1.Pod) subject { … } type subject … func (s subject) expect(expected time.Time) { … } func (s subject) expectNil() { … } func (s subject) doExpect(expected time.Time) { … } func createPod(namespace, ttServiceName string, readyTime time.Time) *v1.Pod { … } func createService(namespace, ttServiceName string, creationTime time.Time) *v1.Service { … }