MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / TestNewResponseRejectStaticIsInvalid

Function TestNewResponseRejectStaticIsInvalid

auth/response_test.go:27–31  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func TestNewResponseRejectStaticIsInvalid(t *testing.T) {
28 if _, err := NewResponse("reject-static://?code=204", nil); err == nil {
29 t.Fatalf("NewResponse accepted reject-static scheme")
30 }
31}
32
33func TestNewRejectAuthStaticIsInvalid(t *testing.T) {
34 if _, err := NewRejectAuth("static://?code=403", nil); err == nil {

Callers

nothing calls this directly

Calls 2

NewResponseFunction · 0.85
FatalfMethod · 0.80

Tested by

no test coverage detected