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

Method get

error_map.go:38–47  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

36}
37
38func (e *errorMap) get(err error) uint64 {
39 s := err.Error()
40 e.mu.RLock()
41 defer e.mu.RUnlock()
42 c := e.m[s]
43 if c == nil {
44 return uint64(0)
45 }
46 return *c
47}
48
49func (e *errorMap) sum() uint64 {
50 e.mu.RLock()

Callers 3

TestErrorMapAddFunction · 0.80
TestErrorMapGetFunction · 0.80
BenchmarkErrorMapGetFunction · 0.80

Calls 1

ErrorMethod · 0.80

Tested by 3

TestErrorMapAddFunction · 0.64
TestErrorMapGetFunction · 0.64
BenchmarkErrorMapGetFunction · 0.64