Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Dec 20, 2023
1 parent cfd5abd commit 1d20749
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions rfc9111/shared_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,24 @@ func TestShared_Storable(t *testing.T) {
false,
time.Time{},
},
{
"GET Set-Cookie: k=v 200 Cache-Control: max-age=15 -> No Store",
&http.Request{
Method: http.MethodGet,
Header: http.Header{
"Set-Cookie": []string{"k=v"},
},
},
&http.Response{
StatusCode: http.StatusOK,
Header: http.Header{
"Cache-Control": []string{"max-age=15"},
},
},
nil,
false,
time.Time{},
},
{
"ExtendedRule(+15s) GET 200 -> +15s",
&http.Request{
Expand Down

0 comments on commit 1d20749

Please sign in to comment.