MCPcopy Create free account
hub / github.com/cantabular/faststringmap / TestFastStringToUint32

Function TestFastStringToUint32

uint32_store_test.go:26–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24}
25
26func TestFastStringToUint32(t *testing.T) {
27 const nStrs = 8192
28 m := randomSmallStrings(nStrs, 8)
29 checkWithMapSlice(t, mapSliceN(m, len(m)/2))
30}
31
32func checkWithMapSlice(t *testing.T, ms mapSlice) {
33 fm := faststringmap.NewUint32Store(ms)

Callers

nothing calls this directly

Calls 3

randomSmallStringsFunction · 0.85
checkWithMapSliceFunction · 0.85
mapSliceNFunction · 0.85

Tested by

no test coverage detected