(t testing.TB, xs string, msgs ...string)
| 48 | } |
| 49 | |
| 50 | func Fail(t testing.TB, xs string, msgs ...string) { |
| 51 | var testName string |
| 52 | // Add test name if the Go version supports it |
| 53 | if n, ok := t.(interface { |
| 54 | Name() string |
| 55 | }); ok { |
| 56 | testName = n.Name() |
| 57 | } |
| 58 | |
| 59 | t.Errorf("error %s:%s\n%s\n", testName, xs, strings.Join(msgs, "")) |
| 60 | } |
| 61 | |
| 62 | func Failnow(t testing.TB, xs string, msgs ...string) { |
| 63 | Fail(t, xs, msgs...) |
no outgoing calls
no test coverage detected
searching dependent graphs…