@@ -16,8 +16,8 @@ type PrepareInterface interface {
1616 CreateStorage () (pool.StorageInterface , func ())
1717}
1818
19- // testStorage_Add проверка корректости добавления ноды в хранилище
20- func testStorage_Add (t * testing.T , p PrepareInterface ) {
19+ // TestStorage_Add проверка корректости добавления ноды в хранилище
20+ func TestStorage_Add (t * testing.T , p PrepareInterface ) {
2121 t .Parallel ()
2222
2323 storage , deferFunc := p .CreateStorage ()
@@ -50,8 +50,8 @@ func testStorage_Add(t *testing.T, p PrepareInterface) {
5050 //assert.Equal(t, expectedNode.CapabilitiesList, nodeList[0].CapabilitiesList) //todo: доделать
5151}
5252
53- // testStorage_Add_Repeat проверка того что при повторном добавлении ноды вместо дублирования происходит корректный апдейт
54- func testStorage_Add_Repeat (t * testing.T , p PrepareInterface ) {
53+ // TestStorage_Add_Repeat проверка того что при повторном добавлении ноды вместо дублирования происходит корректный апдейт
54+ func TestStorage_Add_Repeat (t * testing.T , p PrepareInterface ) {
5555 t .Parallel ()
5656 storage , deferFunc := p .CreateStorage ()
5757 defer deferFunc ()
@@ -72,8 +72,8 @@ func testStorage_Add_Repeat(t *testing.T, p PrepareInterface) {
7272 //todo: доделать capabilities
7373}
7474
75- // testStorage_Add_Limit_Overflow проверка того что при переполнении лимита, запись не добавляется в хранилище
76- func testStorage_Add_Limit_Overflow (t * testing.T , p PrepareInterface ) {
75+ // TestStorage_Add_Limit_Overflow проверка того что при переполнении лимита, запись не добавляется в хранилище
76+ func TestStorage_Add_Limit_Overflow (t * testing.T , p PrepareInterface ) {
7777 t .Parallel ()
7878 storage , deferFunc := p .CreateStorage ()
7979 defer deferFunc ()
@@ -94,8 +94,8 @@ func testStorage_Add_Limit_Overflow(t *testing.T, p PrepareInterface) {
9494 assert .Len (t , nodeList , limit , "Added more than " + strconv .Itoa (limit )+ "one node" )
9595}
9696
97- // testStorage_GetAll проверка получения всех нод
98- func testStorage_GetAll (t * testing.T , p PrepareInterface ) {
97+ // TestStorage_GetAll проверка получения всех нод
98+ func TestStorage_GetAll (t * testing.T , p PrepareInterface ) {
9999 t .Parallel ()
100100 storage , deferFunc := p .CreateStorage ()
101101 defer deferFunc ()
@@ -134,8 +134,8 @@ func testStorage_GetAll(t *testing.T, p PrepareInterface) {
134134 }
135135}
136136
137- // testStorage_GetByAddress проверка получения ноды по адресу
138- func testStorage_GetByAddress (t * testing.T , p PrepareInterface ) {
137+ // TestStorage_GetByAddress проверка получения ноды по адресу
138+ func TestStorage_GetByAddress (t * testing.T , p PrepareInterface ) {
139139 t .Parallel ()
140140 storage , deferFunc := p .CreateStorage ()
141141 defer deferFunc ()
@@ -155,8 +155,8 @@ func testStorage_GetByAddress(t *testing.T, p PrepareInterface) {
155155
156156}
157157
158- // testStorage_GetBySession проверка получения ноды по sessionId
159- func testStorage_GetBySession (t * testing.T , p PrepareInterface ) {
158+ // TestStorage_GetBySession проверка получения ноды по sessionId
159+ func TestStorage_GetBySession (t * testing.T , p PrepareInterface ) {
160160 t .Parallel ()
161161 storage , deferFunc := p .CreateStorage ()
162162 defer deferFunc ()
@@ -177,8 +177,8 @@ func testStorage_GetBySession(t *testing.T, p PrepareInterface) {
177177
178178}
179179
180- // testStorage_GetCountWithStatus проверка получения колличества нод с определенным статусом
181- func testStorage_GetCountWithStatus (t * testing.T , p PrepareInterface ) {
180+ // TestStorage_GetCountWithStatus проверка получения колличества нод с определенным статусом
181+ func TestStorage_GetCountWithStatus (t * testing.T , p PrepareInterface ) {
182182 t .Parallel ()
183183 storage , deferFunc := p .CreateStorage ()
184184 defer deferFunc ()
@@ -200,8 +200,8 @@ func testStorage_GetCountWithStatus(t *testing.T, p PrepareInterface) {
200200 assert .Equal (t , count , 1 )
201201}
202202
203- // testStorage_Remove проверка удаления ноды
204- func testStorage_Remove (t * testing.T , p PrepareInterface ) {
203+ // TestStorage_Remove проверка удаления ноды
204+ func TestStorage_Remove (t * testing.T , p PrepareInterface ) {
205205 t .Parallel ()
206206 storage , deferFunc := p .CreateStorage ()
207207 defer deferFunc ()
@@ -216,8 +216,8 @@ func testStorage_Remove(t *testing.T, p PrepareInterface) {
216216 assert .Error (t , err )
217217}
218218
219- // testStorage_ReserveAvailable_Positive проверка резервирования ноды
220- func testStorage_ReserveAvailable_Positive (t * testing.T , p PrepareInterface ) {
219+ // TestStorage_ReserveAvailable_Positive проверка резервирования ноды
220+ func TestStorage_ReserveAvailable_Positive (t * testing.T , p PrepareInterface ) {
221221 t .Parallel ()
222222 storage , deferFunc := p .CreateStorage ()
223223 defer deferFunc ()
@@ -242,8 +242,8 @@ func testStorage_ReserveAvailable_Positive(t *testing.T, p PrepareInterface) {
242242 assert .Equal (t , pool .NodeStatusReserved , node .Status , "Node not Reserved" )
243243}
244244
245- // testStorage_ReserveAvailable_Negative проверка резервирования ноды, при условии отсутствия доступных нод
246- func testStorage_ReserveAvailable_Negative (t * testing.T , p PrepareInterface ) {
245+ // TestStorage_ReserveAvailable_Negative проверка резервирования ноды, при условии отсутствия доступных нод
246+ func TestStorage_ReserveAvailable_Negative (t * testing.T , p PrepareInterface ) {
247247 t .Parallel ()
248248 storage , deferFunc := p .CreateStorage ()
249249 defer deferFunc ()
@@ -256,8 +256,8 @@ func testStorage_ReserveAvailable_Negative(t *testing.T, p PrepareInterface) {
256256 assert .Error (t , err )
257257}
258258
259- // testStorage_SetAvailable проверка изменения статуса ноды на Available
260- func testStorage_SetAvailable (t * testing.T , p PrepareInterface ) {
259+ // TestStorage_SetAvailable проверка изменения статуса ноды на Available
260+ func TestStorage_SetAvailable (t * testing.T , p PrepareInterface ) {
261261 t .Parallel ()
262262 storage , deferFunc := p .CreateStorage ()
263263 defer deferFunc ()
@@ -275,8 +275,8 @@ func testStorage_SetAvailable(t *testing.T, p PrepareInterface) {
275275 assert .Equal (t , pool .NodeStatusAvailable , node .Status , "Node not Available" )
276276}
277277
278- // testStorage_SetBusy проверка изменения статуса ноды на Busy
279- func testStorage_SetBusy (t * testing.T , p PrepareInterface ) {
278+ // TestStorage_SetBusy проверка изменения статуса ноды на Busy
279+ func TestStorage_SetBusy (t * testing.T , p PrepareInterface ) {
280280 t .Parallel ()
281281 storage , deferFunc := p .CreateStorage ()
282282 defer deferFunc ()
@@ -296,8 +296,8 @@ func testStorage_SetBusy(t *testing.T, p PrepareInterface) {
296296 assert .Equal (t , expectedSessionID , node .SessionID , "Not saved sessionID" )
297297}
298298
299- // testStorage_UpdateAdderss_UpdatesValue успешное обновления адреса ноды
300- func testStorage_UpdateAdderss_UpdatesValue (t * testing.T , p PrepareInterface ) {
299+ // TestStorage_UpdateAdderss_UpdatesValue успешное обновления адреса ноды
300+ func TestStorage_UpdateAdderss_UpdatesValue (t * testing.T , p PrepareInterface ) {
301301 t .Parallel ()
302302 storage , deferFunc := p .CreateStorage ()
303303 defer deferFunc ()
@@ -316,8 +316,8 @@ func testStorage_UpdateAdderss_UpdatesValue(t *testing.T, p PrepareInterface) {
316316 assert .Equal (t , expectedAddress , node .Address , "Not updated address" )
317317}
318318
319- // testStorage_UpdateAdderss_ReturnsErrNotFound попытка обновить несуществующую ноду
320- func testStorage_UpdateAdderss_ReturnsErrNotFound (t * testing.T , p PrepareInterface ) {
319+ // TestStorage_UpdateAdderss_ReturnsErrNotFound попытка обновить несуществующую ноду
320+ func TestStorage_UpdateAdderss_ReturnsErrNotFound (t * testing.T , p PrepareInterface ) {
321321 t .Parallel ()
322322 storage , deferFunc := p .CreateStorage ()
323323 defer deferFunc ()
0 commit comments