MCPcopy
hub / github.com/tinylib/msgp / TestCauseShortByte

Function TestCauseShortByte

msgp/errors_test.go:81–90  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

79}
80
81func TestCauseShortByte(t *testing.T) {
82 err := ErrShortBytes
83 cerr := WrapError(err, "test")
84 if cerr != err {
85 t.Fatal()
86 }
87 if Cause(err) != err {
88 t.Fatal()
89 }
90}
91
92func TestUnwrap(t *testing.T) {
93 // check errors that get wrapped

Callers

nothing calls this directly

Calls 2

WrapErrorFunction · 0.85
CauseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…