MCPcopy Create free account
hub / github.com/pace/bricks / TestError

Function TestError

http/jsonapi/runtime/error_test.go:90–98  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

88}
89
90func TestError(t *testing.T) {
91 err := Error{}
92 err.setHTTPStatus(200)
93
94 result := "200"
95 if err.Status != result {
96 t.Errorf("expected %q got: %q", result, err.Status)
97 }
98}

Callers

nothing calls this directly

Calls 2

setHTTPStatusMethod · 0.95
ErrorfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…