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

Function TestSentinelHttpError_Error

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

Source from the content-addressed store, hash-verified

20}
21
22func TestSentinelHttpError_Error(t *testing.T) {
23 err := SentinelHttpError{
24 message: "foo",
25 }
26
27 actual := err.Error()
28 expect := "foo"
29
30 if actual != expect {
31 t.Errorf("expected '%s' but got '%s'", expect, actual)
32 }
33}
34
35func TestSentinelHttpError_HttpError(t *testing.T) {
36 actualStatus, actualMessage := SentinelHttpError{

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.95

Tested by

no test coverage detected