(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestCookies(t *testing.T) { |
| 87 | a := assertions.New(t) |
| 88 | // Errors on illegal hash key byte size |
| 89 | { |
| 90 | _, err := New(test.Context(), WithCookieKeys(random.Bytes(2), nil)) |
| 91 | a.So(err, should.NotBeNil) |
| 92 | } |
| 93 | // Errors on non 32bit block key |
| 94 | { |
| 95 | _, err := New(test.Context(), WithCookieKeys(nil, random.Bytes(31))) |
| 96 | a.So(err, should.NotBeNil) |
| 97 | } |
| 98 | } |
nothing calls this directly
no test coverage detected