@@ -14,16 +14,15 @@ func TestNewCookieFromOptions(t *testing.T) {
14
14
maxAge int
15
15
secure bool
16
16
httpOnly bool
17
- partitioned bool
18
17
}{
19
- {"" , "bar" , "/foo/bar" , "foo.example.com" , 3600 , true , true , true },
20
- {"foo" , "" , "/foo/bar" , "foo.example.com" , 3600 , true , true , true },
21
- {"foo" , "bar" , "" , "foo.example.com" , 3600 , true , true , true },
22
- {"foo" , "bar" , "/foo/bar" , "" , 3600 , true , true , true },
23
- {"foo" , "bar" , "/foo/bar" , "foo.example.com" , 0 , true , true , true },
24
- {"foo" , "bar" , "/foo/bar" , "foo.example.com" , 3600 , false , true , true },
25
- {"foo" , "bar" , "/foo/bar" , "foo.example.com" , 3600 , true , false , true },
26
- {"foo" , "bar" , "/foo/bar" , "foo.example.com" , 3600 , true , true , false },
18
+ {"" , "bar" , "/foo/bar" , "foo.example.com" , 3600 , true , true },
19
+ {"foo" , "" , "/foo/bar" , "foo.example.com" , 3600 , true , true },
20
+ {"foo" , "bar" , "" , "foo.example.com" , 3600 , true , true },
21
+ {"foo" , "bar" , "/foo/bar" , "" , 3600 , true , true },
22
+ {"foo" , "bar" , "/foo/bar" , "foo.example.com" , 0 , true , true },
23
+ {"foo" , "bar" , "/foo/bar" , "foo.example.com" , 3600 , false , true },
24
+ {"foo" , "bar" , "/foo/bar" , "foo.example.com" , 3600 , true , false },
25
+ {"foo" , "bar" , "/foo/bar" , "foo.example.com" , 3600 , true , true },
27
26
}
28
27
for i , v := range tests {
29
28
options := & Options {
@@ -32,7 +31,6 @@ func TestNewCookieFromOptions(t *testing.T) {
32
31
MaxAge : v .maxAge ,
33
32
Secure : v .secure ,
34
33
HttpOnly : v .httpOnly ,
35
- Partitioned : v .partitioned ,
36
34
}
37
35
cookie := newCookieFromOptions (v .name , v .value , options )
38
36
if cookie .Name != v .name {
@@ -56,8 +54,5 @@ func TestNewCookieFromOptions(t *testing.T) {
56
54
if cookie .HttpOnly != v .httpOnly {
57
55
t .Fatalf ("%v: bad cookie httpOnly: got %v, want %v" , i + 1 , cookie .HttpOnly , v .httpOnly )
58
56
}
59
- if cookie .Partitioned != v .partitioned {
60
- t .Fatalf ("%v: bad cookie partitioned: got %v, want %v" , i + 1 , cookie .Partitioned , v .partitioned )
61
- }
62
57
}
63
58
}
0 commit comments