type mockRangeRegistry …
func (r *mockRangeRegistry) Get() (*api.RangeAllocation, error) { … }
func (r *mockRangeRegistry) CreateOrUpdate(alloc *api.RangeAllocation) error { … }
func TestRepair(t *testing.T) { … }
func TestRepairLeak(t *testing.T) { … }
func TestRepairWithExisting(t *testing.T) { … }
func makeRangeRegistry(t *testing.T, cidrRange string) *mockRangeRegistry { … }
func makeFakeClientSet() *fake.Clientset { … }
func makeIPNet(cidr string) *net.IPNet { … }
func TestShouldWorkOnSecondary(t *testing.T) { … }
func TestRepairDualStack(t *testing.T) { … }
func TestRepairLeakDualStack(t *testing.T) { … }
func TestRepairWithExistingDualStack(t *testing.T) { … }
func clearMetrics() { … }
type testMetrics …
func expectMetrics(t *testing.T, em testMetrics) { … }