MCPcopy Index your code
hub / github.com/imroc/req / AssertNoError

Function AssertNoError

internal/tests/assert.go:36–40  ·  view source on GitHub ↗
(t *testing.T, err error)

Source from the content-addressed store, hash-verified

34}
35
36func AssertNoError(t *testing.T, err error) {
37 if err != nil {
38 t.Errorf("Error occurred [%v]", err)
39 }
40}
41
42func AssertErrorContains(t *testing.T, err error, s string) {
43 if err == nil {

Callers 15

getTestFileContentFunction · 0.92
assertStatusFunction · 0.92
assertSuccessFunction · 0.92
assertIsErrorFunction · 0.92
testRetryFunction · 0.92
TestRetryOverrideFunction · 0.92
TestAddRetryConditionFunction · 0.92
TestSetProxyURLFunction · 0.92
TestSetProxyFunction · 0.92
TestSetBodyMarshalFunction · 0.92

Calls 1

ErrorfMethod · 0.65

Tested by 15

getTestFileContentFunction · 0.74
assertStatusFunction · 0.74
assertSuccessFunction · 0.74
assertIsErrorFunction · 0.74
testRetryFunction · 0.74
TestRetryOverrideFunction · 0.74
TestAddRetryConditionFunction · 0.74
TestSetProxyURLFunction · 0.74
TestSetProxyFunction · 0.74
TestSetBodyMarshalFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…