(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func 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 | |
| 18 | func TestErrorMapGet(t *testing.T) { |
| 19 | m := newErrorMap() |
nothing calls this directly
no test coverage detected