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

Function TestNewSentinelHttpError

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

Source from the content-addressed store, hash-verified

8)
9
10func TestNewSentinelHttpError(t *testing.T) {
11 actual := NewSentinelHttpError(http.StatusInternalServerError, "foo")
12 expect := SentinelHttpError{
13 status: http.StatusInternalServerError,
14 message: "foo",
15 }
16
17 if !reflect.DeepEqual(actual, expect) {
18 t.Errorf("expected %v but got %v", expect, actual)
19 }
20}
21
22func TestSentinelHttpError_Error(t *testing.T) {
23 err := SentinelHttpError{

Callers

nothing calls this directly

Calls 1

NewSentinelHttpErrorFunction · 0.85

Tested by

no test coverage detected