MCPcopy
hub / github.com/duke-git/lancet / TestNew

Function TestNew

xerror/xerror_test.go:27–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func TestNew(t *testing.T) {
28 t.Parallel()
29
30 assert := internal.NewAssert(t, "TestNew")
31
32 err := New("error occurs")
33 assert.Equal("error occurs", err.Error())
34}
35
36func TestWrap(t *testing.T) {
37 t.Parallel()

Callers

nothing calls this directly

Calls 4

EqualMethod · 0.95
NewAssertFunction · 0.92
NewFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…