MCPcopy
hub / github.com/gofiber/fiber / Test_Client_Referer

Function Test_Client_Referer

client/client_test.go:1644–1654  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1642}
1643
1644func Test_Client_Referer(t *testing.T) {
1645 handler := func(c fiber.Ctx) error {
1646 return c.Send(c.Request().Header.Referer())
1647 }
1648
1649 wrapAgent := func(c *Client) {
1650 c.SetReferer("http://referer.com")
1651 }
1652
1653 testClient(t, handler, wrapAgent, "http://referer.com")
1654}
1655
1656func Test_Client_QueryParam(t *testing.T) {
1657 t.Parallel()

Callers

nothing calls this directly

Calls 5

testClientFunction · 0.85
SendMethod · 0.65
RefererMethod · 0.65
RequestMethod · 0.65
SetRefererMethod · 0.45

Tested by

no test coverage detected