MCPcopy Index your code
hub / github.com/codesenberg/bombardier / TestErrorMapAdd

Function TestErrorMapAdd

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

Source from the content-addressed store, hash-verified

7)
8
9func TestErrorMapAdd(t *testing.T) {
10 m := newErrorMap()
11 err := errors.New("add")
12 m.add(err)
13 if c := m.get(err); c != 1 {
14 t.Error(c)
15 }
16}
17
18func TestErrorMapGet(t *testing.T) {
19 m := newErrorMap()

Callers

nothing calls this directly

Calls 4

newErrorMapFunction · 0.85
addMethod · 0.80
getMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected