Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestHasToken (0.21 sec)

  1. src/net/http/header_test.go

    	{"BAR,FOO, baz", "foo", true},
    	{"BAR, FOO,BAZ", "foo", true},
    	{"BAR,FOO, BAZ", "foo", true},
    	{"BAR, FOO, BAZ", "foo", true},
    	{"foobar", "foo", false},
    	{"barfoo ", "foo", false},
    }
    
    func TestHasToken(t *testing.T) {
    	for _, tt := range hasTokenTests {
    		if hasToken(tt.header, tt.token) != tt.want {
    			t.Errorf("hasToken(%q, %q) = %v; want %v", tt.header, tt.token, !tt.want, tt.want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:07:32 UTC 2022
    - 6.1K bytes
    - Viewed (0)
Back to top