(t *testing.T, want, got error)
| 397 | } |
| 398 | |
| 399 | func compareErr(t *testing.T, want, got error) { |
| 400 | if want == nil && got == nil { |
| 401 | return |
| 402 | } |
| 403 | if want == nil || got == nil { |
| 404 | t.Helper() |
| 405 | t.Errorf("want: %v, got: %v", want, got) |
| 406 | } else if want.Error() != got.Error() { |
| 407 | t.Helper() |
| 408 | t.Errorf("want: %q, got: %q", want.Error(), got.Error()) |
| 409 | } |
| 410 | } |
| 411 | |
| 412 | func compareString(t *testing.T, want, got string) { |
| 413 | if want != got { |
no outgoing calls
no test coverage detected
searching dependent graphs…