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

Function TestWithMessagefNil

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

Source from the content-addressed store, hash-verified

199}
200
201func TestWithMessagefNil(t *testing.T) {
202 got := WithMessagef(nil, "no error")
203 if got != nil {
204 t.Errorf("WithMessage(nil, \"no error\"): got %#v, expected nil", got)
205 }
206}
207
208func TestWithMessagef(t *testing.T) {
209 tests := []struct {

Callers

nothing calls this directly

Calls 1

WithMessagefFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…