MCPcopy
hub / github.com/cornelk/hashmap / TestLog2

Function TestLog2

util_test.go:9–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestLog2(t *testing.T) {
10 var fixtures = map[uintptr]uintptr{
11 0: 0,
12 1: 0,
13 2: 1,
14 3: 2,
15 4: 2,
16 5: 3,
17 }
18
19 for input, result := range fixtures {
20 output := log2(input)
21 assert.Equal(t, output, result)
22 }
23}
24
25func TestHashCollision(t *testing.T) {
26 m := New[string, int]()

Callers

nothing calls this directly

Calls 2

EqualFunction · 0.92
log2Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…