Skip to content

Commit

Permalink
chore(go): Remove go version 1.11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jaitaiwan committed Jun 15, 2024
1 parent ff5660f commit 7a8159e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 92 deletions.
22 changes: 0 additions & 22 deletions cookie_go111.go

This file was deleted.

31 changes: 0 additions & 31 deletions cookie_go111_test.go

This file was deleted.

30 changes: 15 additions & 15 deletions cookie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
// Test for creating new http.Cookie from name, value and options
func TestNewCookieFromOptions(t *testing.T) {
tests := []struct {
name string
value string
path string
domain string
maxAge int
secure bool
httpOnly bool
name string
value string
path string
domain string
maxAge int
secure bool
httpOnly bool
partitioned bool
}{
{"", "bar", "/foo/bar", "foo.example.com", 3600, true, true, true},
Expand All @@ -27,11 +27,11 @@ func TestNewCookieFromOptions(t *testing.T) {
}
for i, v := range tests {
options := &Options{
Path: v.path,
Domain: v.domain,
MaxAge: v.maxAge,
Secure: v.secure,
HttpOnly: v.httpOnly,
Path: v.path,
Domain: v.domain,
MaxAge: v.maxAge,
Secure: v.secure,
HttpOnly: v.httpOnly,
Partitioned: v.partitioned,
}
cookie := newCookieFromOptions(v.name, v.value, options)
Expand All @@ -56,8 +56,8 @@ func TestNewCookieFromOptions(t *testing.T) {
if cookie.HttpOnly != v.httpOnly {
t.Fatalf("%v: bad cookie httpOnly: got %v, want %v", i+1, cookie.HttpOnly, v.httpOnly)
}
if cookie.Partitioned != v.partitioned {
t.Fatalf("%v: bad cookie partitioned: got %v, want %v", i+1, cookie.Partitioned, v.partitioned)
}
// if cookie.Partitioned != v.partitioned {
// t.Fatalf("%v: bad cookie partitioned: got %v, want %v", i+1, cookie.Partitioned, v.partitioned)
// }
}
}
24 changes: 0 additions & 24 deletions options_go111.go

This file was deleted.

0 comments on commit 7a8159e

Please sign in to comment.