MCPcopy Create free account
hub / github.com/cloudflare/cfssl / TestHTTPErrorString

Function TestHTTPErrorString

errors/error_test.go:332–339  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

330}
331
332func TestHTTPErrorString(t *testing.T) {
333 method := "GET"
334 err := NewMethodNotAllowed(method)
335 str := err.Error()
336 if str != `Method is not allowed:"`+method+`"` {
337 t.Fatal("Incorrect Error():", str)
338 }
339}

Callers

nothing calls this directly

Calls 2

NewMethodNotAllowedFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…