type testController … func newController(ctx context.Context, t *testing.T, cidrs []*networkingapiv1beta1.ServiceCIDR, ips []*networkingapiv1beta1.IPAddress) (*fake.Clientset, *testController) { … } func TestControllerSync(t *testing.T) { … } func makeServiceCIDR(name, primary, secondary string) *networkingapiv1beta1.ServiceCIDR { … } func makeIPAddress(name string) *networkingapiv1beta1.IPAddress { … } func expectAction(t *testing.T, actions []k8stesting.Action, expected [][]string) { … } func TestController_canDeleteCIDR(t *testing.T) { … } func TestController_ipToCidrs(t *testing.T) { … } func TestController_cidrToCidrs(t *testing.T) { … }