(t *testing.T, got error, wantMsg string)
| 283 | } |
| 284 | |
| 285 | func checkUnredactedError(t *testing.T, got error, wantMsg string) { |
| 286 | t.Helper() |
| 287 | |
| 288 | gotMsg := fmt.Sprint(got) |
| 289 | if gotMsg != wantMsg { |
| 290 | t.Errorf("got wrong unredacted error:\ngot: %q\nwant: %q", gotMsg, wantMsg) |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | func checkRedactedError(t *testing.T, got error, wantMsg string) { |
| 295 | t.Helper() |
no outgoing calls
no test coverage detected