Home / Function/ Test_Client_CookieJar() — fiber Function Reference

Test_Client_CookieJar() — fiber Function Reference

Architecture documentation for the Test_Client_CookieJar() function in client_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  6914af95_0a79_b502_76bb_db542c2187ff["Test_Client_CookieJar()"]
  5d11d0f7_2b3b_7bf3_3b1d_76d79d6872a2["client_test.go"]
  6914af95_0a79_b502_76bb_db542c2187ff -->|defined in| 5d11d0f7_2b3b_7bf3_3b1d_76d79d6872a2
  style 6914af95_0a79_b502_76bb_db542c2187ff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

client/client_test.go lines 1464–1481

func Test_Client_CookieJar(t *testing.T) {
	handler := func(c fiber.Ctx) error {
		return c.SendString(
			c.Cookies("k1") + c.Cookies("k2") + c.Cookies("k3"))
	}

	jar := AcquireCookieJar()
	defer ReleaseCookieJar(jar)

	jar.SetKeyValue("example.com", "k1", "v1")
	jar.SetKeyValue("example.com", "k2", "v2")
	jar.SetKeyValue("example", "k3", "v3")

	wrapAgent := func(c *Client) {
		c.SetCookieJar(jar)
	}
	testClient(t, handler, wrapAgent, "v1v2")
}

Domain

Subdomains

Frequently Asked Questions

What does Test_Client_CookieJar() do?
Test_Client_CookieJar() is a function in the fiber codebase, defined in client/client_test.go.
Where is Test_Client_CookieJar() defined?
Test_Client_CookieJar() is defined in client/client_test.go at line 1464.

Analyze Your Own Codebase

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

Try Supermodel Free