(b *testing.B, orm, method, err string)
| 10 | var mu sync.Mutex |
| 11 | |
| 12 | func 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 | |
| 21 | func GetError(orm, method string) string { |
| 22 | return Errors[orm][method] |
no outgoing calls
no test coverage detected