go test -run Test_Ctx_Cookie_PartitionedSecure
(t *testing.T)
| 1564 | |
| 1565 | // go test -run Test_Ctx_Cookie_PartitionedSecure |
| 1566 | func Test_Ctx_Cookie_PartitionedSecure(t *testing.T) { |
| 1567 | t.Parallel() |
| 1568 | app := New() |
| 1569 | c := app.AcquireCtx(&fasthttp.RequestCtx{}) |
| 1570 | |
| 1571 | ck := &Cookie{ |
| 1572 | Name: "ps", |
| 1573 | Value: "v", |
| 1574 | Secure: true, |
| 1575 | SameSite: CookieSameSiteNoneMode, |
| 1576 | Partitioned: true, |
| 1577 | } |
| 1578 | c.Res().Cookie(ck) |
| 1579 | require.Equal(t, "ps=v; path=/; secure; SameSite=None; Partitioned", c.Res().Get(HeaderSetCookie)) |
| 1580 | } |
| 1581 | |
| 1582 | // go test -run Test_Ctx_Cookie_Invalid |
| 1583 | func Test_Ctx_Cookie_Invalid(t *testing.T) { |
nothing calls this directly
no test coverage detected