func newStorage(t *testing.T) (*Etcd, *etcd3testing.EtcdTestServer, allocator.Interface, *storagebackend.Config) { … } func validNewRangeAllocation() *api.RangeAllocation { … } func key() string { … } func TestEmpty(t *testing.T) { … } func TestStore(t *testing.T) { … } // Test that one item is allocated in storage but is not allocated locally // When try to allocate it, it should fail despite it's free in the local bitmap // bot not in the storage func TestAllocatedStorageButReleasedLocally(t *testing.T) { … } // Test that one item is free in storage but is allocated locally // When try to allocate it, it should succeed despite it's allocated // in the local bitmap bot not in the storage func TestAllocatedLocallyButReleasedStorage(t *testing.T) { … }