MCPcopy
hub / github.com/destel/rill / ExpectNoError

Function ExpectNoError

internal/th/assertions.go:179–184  ·  view source on GitHub ↗
(t *testing.T, err error)

Source from the content-addressed store, hash-verified

177}
178
179func ExpectNoError(t *testing.T, err error) {
180 t.Helper()
181 if err != nil {
182 t.Errorf("unexpected error '%v'", err)
183 }
184}
185
186func ExpectNotPanic(t *testing.T, f func()) {
187 t.Helper()

Callers 7

TestErrFunction · 0.92
TestFirstFunction · 0.92
TestForEachFunction · 0.92
TestAnyAllFunction · 0.92
TestReduceFunction · 0.92
TestMapReduceFunction · 0.92
TestFromSliceFunction · 0.92

Calls

no outgoing calls

Tested by 7

TestErrFunction · 0.74
TestFirstFunction · 0.74
TestForEachFunction · 0.74
TestAnyAllFunction · 0.74
TestReduceFunction · 0.74
TestMapReduceFunction · 0.74
TestFromSliceFunction · 0.74