MCPcopy Index your code
hub / github.com/linkerd/linkerd2 / Error

Function Error

testutil/annotations.go:62–66  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

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
62func 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

Callers 1

TestErrorFunction · 0.85

Calls 2

echoAnnotationErrFunction · 0.85
ErrorMethod · 0.45

Tested by 1

TestErrorFunction · 0.68