(t *testing.T)
| 44 | } |
| 45 | |
| 46 | func 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 | |
| 56 | var isValidChallengeKeyTests = []struct { |
| 57 | key string |
nothing calls this directly
no test coverage detected
searching dependent graphs…