Fatal is a wrapper around t.Fatal() args are passed to t.Fatal(args) and each arg will be sent to stdout formatted as a GitHub annotation when the envFlag environment variable is set
(t *testing.T, args ...interface{})
| 95 | // args are passed to t.Fatal(args) and each arg will be sent to stdout formatted |
| 96 | // as a GitHub annotation when the envFlag environment variable is set |
| 97 | func Fatal(t *testing.T, args ...interface{}) { |
| 98 | t.Helper() |
| 99 | echoAnnotationErr(t, args) |
| 100 | t.Fatal(args...) |
| 101 | } |
| 102 | |
| 103 | // AnnotatedFatal is similar to Fatal() but it also admits a msg string that |
| 104 | // will be used as the GitHub annotation |