MCPcopy
hub / github.com/pkg/errors / TestWithMessageNil

Function TestWithMessageNil

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

Source from the content-addressed store, hash-verified

174}
175
176func TestWithMessageNil(t *testing.T) {
177 got := WithMessage(nil, "no error")
178 if got != nil {
179 t.Errorf("WithMessage(nil, \"no error\"): got %#v, expected nil", got)
180 }
181}
182
183func TestWithMessage(t *testing.T) {
184 tests := []struct {

Callers

nothing calls this directly

Calls 1

WithMessageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…