(t *testing.T, got error, wantMsg string)
| 292 | } |
| 293 | |
| 294 | func checkRedactedError(t *testing.T, got error, wantMsg string) { |
| 295 | t.Helper() |
| 296 | |
| 297 | gotMsg := fmt.Sprint(Error(got)) |
| 298 | if gotMsg != wantMsg { |
| 299 | t.Errorf("got wrong redacted error:\ngot: %q\nwant: %q", gotMsg, wantMsg) |
| 300 | } |
| 301 | } |
no test coverage detected