MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / verifySizeCapa

Method verifySizeCapa

structure/trie/trie_test.go:150–157  ·  view source on GitHub ↗

verify expected size and capacity

(t *testing.T, expectedSize, expectedCapacity int)

Source from the content-addressed store, hash-verified

148
149// verify expected size and capacity
150func (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}

Callers 3

TestTrieInsertFunction · 0.95
TestTrieRemoveFunction · 0.95

Calls 2

SizeMethod · 0.95
CapacityMethod · 0.95

Tested by

no test coverage detected