MCPcopy Create free account
hub / github.com/efectn/go-orm-benchmarks / SetError

Function SetError

helper/error.go:12–19  ·  view source on GitHub ↗
(b *testing.B, orm, method, err string)

Source from the content-addressed store, hash-verified

10var mu sync.Mutex
11
12func SetError(b *testing.B, orm, method, err string) {
13 b.Helper()
14
15 mu.Lock()
16 Errors[orm][method] = err
17 mu.Unlock()
18 b.Fail()
19}
20
21func GetError(orm, method string) string {
22 return Errors[orm][method]

Callers 15

InsertMethod · 0.92
InsertMultiMethod · 0.92
UpdateMethod · 0.92
ReadMethod · 0.92
ReadSliceMethod · 0.92
InsertMethod · 0.92
InsertMultiMethod · 0.92
UpdateMethod · 0.92
ReadMethod · 0.92
ReadSliceMethod · 0.92
InsertMethod · 0.92
InsertMultiMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected