MCPcopy
hub / github.com/caddyserver/certmagic / Fail

Function Fail

internal/testutil/testutil.go:50–60  ·  view source on GitHub ↗
(t testing.TB, xs string, msgs ...string)

Source from the content-addressed store, hash-verified

48}
49
50func 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
62func Failnow(t testing.TB, xs string, msgs ...string) {
63 Fail(t, xs, msgs...)

Callers 3

AssertNoErrorFunction · 0.85
AssertEqualFunction · 0.85
FailnowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…