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

Function TestWrapfNil

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

Source from the content-addressed store, hash-verified

107}
108
109func TestWrapfNil(t *testing.T) {
110 got := Wrapf(nil, "no error")
111 if got != nil {
112 t.Errorf("Wrapf(nil, \"no error\"): got %#v, expected nil", got)
113 }
114}
115
116func TestWrapf(t *testing.T) {
117 tests := []struct {

Callers

nothing calls this directly

Calls 1

WrapfFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…