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

Function RequireNoError

internal/testutil/testutil.go:24–28  ·  view source on GitHub ↗
(t *testing.T, err error, msgAndArgs ...string)

Source from the content-addressed store, hash-verified

22 }
23}
24func RequireNoError(t *testing.T, err error, msgAndArgs ...string) {
25 if err != nil {
26 Failnow(t, fmt.Sprintf("Received unexpected error:\n%+v", err), msgAndArgs...)
27 }
28}
29func RequireError(t *testing.T, err error, msgAndArgs ...string) {
30 if err == nil {
31 Failnow(t, fmt.Sprintf("Received no error when expecting error:\n%+v", err), msgAndArgs...)

Callers 8

TestFileStorageStoreLoadFunction · 0.92
TestFileStorageWriteLockFunction · 0.92
TestFileFunction · 0.92
TestConcurrentWritesFunction · 0.92

Calls 1

FailnowFunction · 0.85

Tested by 8

TestFileStorageStoreLoadFunction · 0.74
TestFileStorageWriteLockFunction · 0.74
TestFileFunction · 0.74
TestConcurrentWritesFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…