MCPcopy Create free account
hub / github.com/gotenberg/gotenberg / TestSentinelWrappedError_Is

Function TestSentinelWrappedError_Is

pkg/modules/api/errors_test.go:53–64  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

51}
52
53func TestSentinelWrappedError_Is(t *testing.T) {
54 errSentinel := SentinelHttpError{}
55
56 err := sentinelWrappedError{
57 error: errors.New("foo"),
58 sentinel: errSentinel,
59 }
60
61 if !err.Is(errSentinel) {
62 t.Error("expected true")
63 }
64}
65
66func TestSentinelWrappedError_HttpError(t *testing.T) {
67 expectStatus, expectMessage := SentinelHttpError{

Callers

nothing calls this directly

Calls 2

IsMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected