Test_CookieJar_Secure() — fiber Function Reference
Architecture documentation for the Test_CookieJar_Secure() function in cookiejar_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 7d08b1e9_2319_4b5b_cf4c_575bc8e72337["Test_CookieJar_Secure()"] cd50e15b_65b6_b061_b1e6_e10e95a06bf6["cookiejar_test.go"] 7d08b1e9_2319_4b5b_cf4c_575bc8e72337 -->|defined in| cd50e15b_65b6_b061_b1e6_e10e95a06bf6 style 7d08b1e9_2319_4b5b_cf4c_575bc8e72337 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
client/cookiejar_test.go lines 262–287
func Test_CookieJar_Secure(t *testing.T) {
t.Parallel()
jar := &CookieJar{}
uriHTTP := fasthttp.AcquireURI()
require.NoError(t, uriHTTP.Parse(nil, []byte("http://example.com/")))
c := &fasthttp.Cookie{}
c.SetKey("k")
c.SetValue("v")
c.SetSecure(true)
jar.Set(uriHTTP, c)
cookies := jar.Get(uriHTTP)
require.Empty(t, cookies)
uriHTTPS := fasthttp.AcquireURI()
require.NoError(t, uriHTTPS.Parse(nil, []byte("https://example.com/")))
cookies = jar.Get(uriHTTPS)
require.Len(t, cookies, 1)
require.Equal(t, "k", string(cookies[0].Key()))
require.Equal(t, "v", string(cookies[0].Value()))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_CookieJar_Secure() do?
Test_CookieJar_Secure() is a function in the fiber codebase, defined in client/cookiejar_test.go.
Where is Test_CookieJar_Secure() defined?
Test_CookieJar_Secure() is defined in client/cookiejar_test.go at line 262.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free