var writeSetCookiesTests … func TestWriteSetCookies(t *testing.T) { … } type headerOnlyResponseWriter … func (ho headerOnlyResponseWriter) Header() Header { … } func (ho headerOnlyResponseWriter) Write([]byte) (int, error) { … } func (ho headerOnlyResponseWriter) WriteHeader(int) { … } func TestSetCookie(t *testing.T) { … } var addCookieTests … func TestAddCookie(t *testing.T) { … } var readSetCookiesTests … func toJSON(v any) string { … } func TestReadSetCookies(t *testing.T) { … } var readCookiesTests … func TestReadCookies(t *testing.T) { … } func TestSetCookieDoubleQuotes(t *testing.T) { … } func TestCookieSanitizeValue(t *testing.T) { … } func TestCookieSanitizePath(t *testing.T) { … } func TestCookieValid(t *testing.T) { … } func BenchmarkCookieString(b *testing.B) { … } func BenchmarkReadSetCookies(b *testing.B) { … } func BenchmarkReadCookies(b *testing.B) { … } func TestParseCookie(t *testing.T) { … } func TestParseSetCookie(t *testing.T) { … }