kubernetes/pkg/registry/core/service/portallocator/storage/storage_test.go

const basePortRange

const sizePortRange

func newStorage(t *testing.T) (*etcd3testing.EtcdTestServer, portallocator.Interface, allocator.Interface, storage.Interface, factory.DestroyFunc) {}

func validNewRangeAllocation() *api.RangeAllocation {}

func key() string {}

// TestEmpty fails to allocate ports if the storage wasn't initialized with a servicenodeport range
func TestEmpty(t *testing.T) {}

// TestAllocate fails to allocate ports out of the valid port range
func TestAllocate(t *testing.T) {}

// TestReallocate test that we can not allocate a port already allocated until it is released
func TestReallocate(t *testing.T) {}

func TestAllocateReserved(t *testing.T) {}

func TestAllocateReservedDynamicBlockExhausted(t *testing.T) {}