MCPcopy Index your code
hub / github.com/pkg/errors / TestWrapNil

Function TestWrapNil

errors_test.go:30–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func TestWrapNil(t *testing.T) {
31 got := Wrap(nil, "no error")
32 if got != nil {
33 t.Errorf("Wrap(nil, \"no error\"): got %#v, expected nil", got)
34 }
35}
36
37func TestWrap(t *testing.T) {
38 tests := []struct {

Callers

nothing calls this directly

Calls 1

WrapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…