MCPcopy
hub / github.com/argoproj/argo-workflows / TestErrorf

Function TestErrorf

errors/errors_test.go:13–16  ·  view source on GitHub ↗

TestErrorf tests the initializer of error package

(t *testing.T)

Source from the content-addressed store, hash-verified

11
12// TestErrorf tests the initializer of error package
13func TestErrorf(t *testing.T) {
14 err := errors.Errorf(errors.CodeInternal, "test internal")
15 assert.Equal(t, "test internal", err.Error())
16}
17
18// TestWrap ensures we can wrap an error and use Cause() to retrieve the original error
19func TestWrap(t *testing.T) {

Callers

nothing calls this directly

Calls 2

ErrorfFunction · 0.92
ErrorMethod · 0.65

Tested by

no test coverage detected