MCPcopy Index your code
hub / github.com/gorilla/websocket / TestCheckSameOrigin

Function TestCheckSameOrigin

server_test.go:66–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

64}
65
66func TestCheckSameOrigin(t *testing.T) {
67 for _, tt := range checkSameOriginTests {
68 ok := checkSameOrigin(tt.r)
69 if tt.ok != ok {
70 t.Errorf("checkSameOrigin(%+v) returned %v, want %v", tt.r, ok, tt.ok)
71 }
72 }
73}
74
75type reuseTestResponseWriter struct {
76 brw *bufio.ReadWriter

Callers

nothing calls this directly

Calls 1

checkSameOriginFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…