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

Function TestTokenListContainsValue

util_test.go:46–54  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestTokenListContainsValue(t *testing.T) {
47 for _, tt := range tokenListContainsValueTests {
48 h := http.Header{"Upgrade": {tt.value}}
49 ok := tokenListContainsValue(h, "Upgrade", "websocket")
50 if ok != tt.ok {
51 t.Errorf("tokenListContainsValue(h, n, %q) = %v, want %v", tt.value, ok, tt.ok)
52 }
53 }
54}
55
56var isValidChallengeKeyTests = []struct {
57 key string

Callers

nothing calls this directly

Calls 1

tokenListContainsValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…