verify expected size and capacity
(t *testing.T, expectedSize, expectedCapacity int)
| 148 | |
| 149 | // verify expected size and capacity |
| 150 | func (n *Node) verifySizeCapa(t *testing.T, expectedSize, expectedCapacity int) { |
| 151 | if got := n.Size(); got != expectedSize { |
| 152 | t.Fatalf("Expected Size was %d but got %d", expectedSize, got) |
| 153 | } |
| 154 | if got := n.Capacity(); got != expectedCapacity { |
| 155 | t.Fatalf("Expected Capacity was %d but got %d", expectedCapacity, got) |
| 156 | } |
| 157 | } |
no test coverage detected