(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestPushAndPop(t *testing.T) { |
| 13 | t.Parallel() |
| 14 | |
| 15 | // given |
| 16 | queue := NewBytesQueue(10, 0, true) |
| 17 | entry := []byte("hello") |
| 18 | |
| 19 | // when |
| 20 | _, err := queue.Pop() |
| 21 | |
| 22 | // then |
| 23 | assertEqual(t, "Empty queue", err.Error()) |
| 24 | |
| 25 | // when |
| 26 | queue.Push(entry) |
| 27 | |
| 28 | // then |
| 29 | assertEqual(t, entry, pop(queue)) |
| 30 | } |
| 31 | |
| 32 | func TestLen(t *testing.T) { |
| 33 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…