var noEndpoints … func TestEndpointsAdapterGet(t *testing.T) { … } func TestEndpointsAdapterCreate(t *testing.T) { … } func TestEndpointsAdapterUpdate(t *testing.T) { … } func generateEndpointsAndSlice(name, namespace string, ports []int, addresses []string) (*corev1.Endpoints, *discovery.EndpointSlice) { … } func TestEndpointManagerEnsureEndpointSliceFromEndpoints(t *testing.T) { … }