Error is a wrapper around t.Error() args are passed to t.Error(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{})
| 60 | // args are passed to t.Error(args) and each arg will be sent to stdout formatted |
| 61 | // as a GitHub annotation when the envFlag environment variable is set |
| 62 | func Error(t *testing.T, args ...interface{}) { |
| 63 | t.Helper() |
| 64 | echoAnnotationErr(t, args...) |
| 65 | t.Error(args...) |
| 66 | } |
| 67 | |
| 68 | // AnnotatedError is similar to Error() but it also admits a msg string that |
| 69 | // will be used as the GitHub annotation |