Home / Function/ Test_CookieJarSetRepeatedCookieKeys() — fiber Function Reference

Test_CookieJarSetRepeatedCookieKeys() — fiber Function Reference

Architecture documentation for the Test_CookieJarSetRepeatedCookieKeys() function in cookiejar_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  54d399d6_7dbe_58c2_2447_04a553574a08["Test_CookieJarSetRepeatedCookieKeys()"]
  cd50e15b_65b6_b061_b1e6_e10e95a06bf6["cookiejar_test.go"]
  54d399d6_7dbe_58c2_2447_04a553574a08 -->|defined in| cd50e15b_65b6_b061_b1e6_e10e95a06bf6
  style 54d399d6_7dbe_58c2_2447_04a553574a08 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

client/cookiejar_test.go lines 128–154

func Test_CookieJarSetRepeatedCookieKeys(t *testing.T) {
	t.Parallel()
	host := "fast.http"
	cj := &CookieJar{}

	uri := fasthttp.AcquireURI()
	uri.SetHost(host)

	cookie := &fasthttp.Cookie{}
	cookie.SetKey("k")
	cookie.SetValue("v")

	cookie2 := &fasthttp.Cookie{}
	cookie2.SetKey("k")
	cookie2.SetValue("v2")

	cookie3 := &fasthttp.Cookie{}
	cookie3.SetKey("key")
	cookie3.SetValue("value")

	cj.Set(uri, cookie, cookie2, cookie3)

	cookies := cj.Get(uri)
	require.Len(t, cookies, 2)
	require.Equal(t, cookies[0].String(), cookie2.String())
	require.True(t, bytes.Equal(cookies[0].Value(), cookie2.Value()))
}

Domain

Subdomains

Frequently Asked Questions

What does Test_CookieJarSetRepeatedCookieKeys() do?
Test_CookieJarSetRepeatedCookieKeys() is a function in the fiber codebase, defined in client/cookiejar_test.go.
Where is Test_CookieJarSetRepeatedCookieKeys() defined?
Test_CookieJarSetRepeatedCookieKeys() is defined in client/cookiejar_test.go at line 128.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free