(err error, t *testing.T)
| 86 | } |
| 87 | |
| 88 | func exactArgsWithInvalidCount(err error, t *testing.T) { |
| 89 | if err == nil { |
| 90 | t.Fatal("Expected an error") |
| 91 | } |
| 92 | got := err.Error() |
| 93 | expected := "accepts 2 arg(s), received 3" |
| 94 | if got != expected { |
| 95 | t.Fatalf("Expected %q, got %q", expected, got) |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | func rangeArgsWithInvalidCount(err error, t *testing.T) { |
| 100 | if err == nil { |
no test coverage detected