MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / testIntMapsEq

Function testIntMapsEq

pkg/filestore/blockstore_test.go:535–545  ·  view source on GitHub ↗
(t *testing.T, msg string, m map[int]int, expected map[int]int)

Source from the content-addressed store, hash-verified

533}
534
535func testIntMapsEq(t *testing.T, msg string, m map[int]int, expected map[int]int) {
536 if len(m) != len(expected) {
537 t.Errorf("%s: map length mismatch got:%d expected:%d", msg, len(m), len(expected))
538 return
539 }
540 for k, v := range m {
541 if expected[k] != v {
542 t.Errorf("%s: value mismatch for key %d, got:%d expected:%d", msg, k, v, expected[k])
543 }
544 }
545}
546
547func TestComputePartMap(t *testing.T) {
548 partDataSize = 100

Callers 1

TestComputePartMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected