func makeEndpointsArray(name string, ips []string, ports []corev1.EndpointPort) []runtime.Object { … } func makeEndpoints(name string, ips []string, ports []corev1.EndpointPort) *corev1.Endpoints { … } func makeEndpointSlice(name string, ips []string, ports []corev1.EndpointPort) *discoveryv1.EndpointSlice { … } func verifyCreatesAndUpdates(fakeClient *fake.Clientset, expectedCreates, expectedUpdates []runtime.Object) error { … }