MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestNew

Function TestNew

internal/errors/error_test.go:8–14  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestNew(t *testing.T) {
9 t.Log(New("hello"))
10 t.Log(Wrap(errors.New("hello")))
11 t.Log(testError1())
12 t.Log(Wrap(testError1()))
13 t.Log(Wrap(testError2()))
14}
15
16func testError1() error {
17 return New("test error1")

Callers

nothing calls this directly

Calls 5

WrapFunction · 0.85
testError1Function · 0.85
testError2Function · 0.85
LogMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected