Documentation ¶
Index ¶
- func TestStorage_Add(t *testing.T, p PrepareInterface)
- func TestStorage_Add_Limit_Overflow(t *testing.T, p PrepareInterface)
- func TestStorage_Add_Repeat(t *testing.T, p PrepareInterface)
- func TestStorage_GetAll(t *testing.T, p PrepareInterface)
- func TestStorage_GetByAddress(t *testing.T, p PrepareInterface)
- func TestStorage_GetBySession(t *testing.T, p PrepareInterface)
- func TestStorage_GetCountWithStatus(t *testing.T, p PrepareInterface)
- func TestStorage_Remove(t *testing.T, p PrepareInterface)
- func TestStorage_ReserveAvailable_Negative(t *testing.T, p PrepareInterface)
- func TestStorage_ReserveAvailable_Positive(t *testing.T, p PrepareInterface)
- func TestStorage_SetAvailable(t *testing.T, p PrepareInterface)
- func TestStorage_SetBusy(t *testing.T, p PrepareInterface)
- func TestStorage_UpdateAdderss_ReturnsErrNotFound(t *testing.T, p PrepareInterface)
- func TestStorage_UpdateAdderss_UpdatesValue(t *testing.T, p PrepareInterface)
- type PrepareInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestStorage_Add ¶
func TestStorage_Add(t *testing.T, p PrepareInterface)
TestStorage_Add проверка корректости добавления ноды в хранилище
func TestStorage_Add_Limit_Overflow ¶
func TestStorage_Add_Limit_Overflow(t *testing.T, p PrepareInterface)
TestStorage_Add_Limit_Overflow проверка того что при переполнении лимита, запись не добавляется в хранилище
func TestStorage_Add_Repeat ¶
func TestStorage_Add_Repeat(t *testing.T, p PrepareInterface)
TestStorage_Add_Repeat проверка того что при повторном добавлении ноды вместо дублирования происходит корректный апдейт
func TestStorage_GetAll ¶
func TestStorage_GetAll(t *testing.T, p PrepareInterface)
TestStorage_GetAll проверка получения всех нод
func TestStorage_GetByAddress ¶
func TestStorage_GetByAddress(t *testing.T, p PrepareInterface)
TestStorage_GetByAddress проверка получения ноды по адресу
func TestStorage_GetBySession ¶
func TestStorage_GetBySession(t *testing.T, p PrepareInterface)
TestStorage_GetBySession проверка получения ноды по sessionId
func TestStorage_GetCountWithStatus ¶
func TestStorage_GetCountWithStatus(t *testing.T, p PrepareInterface)
TestStorage_GetCountWithStatus проверка получения колличества нод с определенным статусом
func TestStorage_Remove ¶
func TestStorage_Remove(t *testing.T, p PrepareInterface)
TestStorage_Remove проверка удаления ноды
func TestStorage_ReserveAvailable_Negative ¶
func TestStorage_ReserveAvailable_Negative(t *testing.T, p PrepareInterface)
TestStorage_ReserveAvailable_Negative проверка резервирования ноды, при условии отсутствия доступных нод
func TestStorage_ReserveAvailable_Positive ¶
func TestStorage_ReserveAvailable_Positive(t *testing.T, p PrepareInterface)
TestStorage_ReserveAvailable_Positive проверка резервирования ноды
func TestStorage_SetAvailable ¶
func TestStorage_SetAvailable(t *testing.T, p PrepareInterface)
TestStorage_SetAvailable проверка изменения статуса ноды на Available
func TestStorage_SetBusy ¶
func TestStorage_SetBusy(t *testing.T, p PrepareInterface)
TestStorage_SetBusy проверка изменения статуса ноды на Busy
func TestStorage_UpdateAdderss_ReturnsErrNotFound ¶
func TestStorage_UpdateAdderss_ReturnsErrNotFound(t *testing.T, p PrepareInterface)
TestStorage_UpdateAdderss_ReturnsErrNotFound попытка обновить несуществующую ноду
func TestStorage_UpdateAdderss_UpdatesValue ¶
func TestStorage_UpdateAdderss_UpdatesValue(t *testing.T, p PrepareInterface)
TestStorage_UpdateAdderss_UpdatesValue успешное обновления адреса ноды
Types ¶
type PrepareInterface ¶
type PrepareInterface interface { SetUp() TearDown() CreateStorage() (pool.StorageInterface, func()) }
Сделано для того чтобы тестировать одним набором тестов все реализации