const testServicePort … const testServicePortName … func newEndpoints(namespace, name string) *v1.Endpoints { … } func newEndpointsWithAddress(namespace, name string, port int32, portName string) *v1.Endpoints { … } func newService(namespace, name string, port int32, portName string) *v1.Service { … } func newLocalAPIService(name string) *apiregistration.APIService { … } func newRemoteAPIService(name string) *apiregistration.APIService { … } type T … func setupAPIServices(t T, apiServices []runtime.Object) (*AvailableConditionController, *fake.Clientset) { … } func BenchmarkBuildCache(b *testing.B) { … } func TestBuildCache(t *testing.T) { … } func TestSync(t *testing.T) { … } type fakeServiceResolver … func (f *fakeServiceResolver) ResolveEndpoint(namespace, name string, port int32) (*url.URL, error) { … } func TestUpdateAPIServiceStatus(t *testing.T) { … } func emptyCert() []byte { … }