(t *testing.T)
| 1157 | } |
| 1158 | |
| 1159 | func Test_Request_UserAgent_With_Server(t *testing.T) { |
| 1160 | t.Parallel() |
| 1161 | |
| 1162 | handler := func(c fiber.Ctx) error { |
| 1163 | return c.Send(c.Request().Header.UserAgent()) |
| 1164 | } |
| 1165 | |
| 1166 | t.Run("default", func(t *testing.T) { |
| 1167 | t.Parallel() |
| 1168 | testRequest(t, handler, func(_ *Request) {}, defaultUserAgent, 5) |
| 1169 | }) |
| 1170 | |
| 1171 | t.Run("custom", func(t *testing.T) { |
| 1172 | t.Parallel() |
| 1173 | testRequest(t, handler, func(agent *Request) { |
| 1174 | agent.SetUserAgent("ua") |
| 1175 | }, "ua", 5) |
| 1176 | }) |
| 1177 | } |
| 1178 | |
| 1179 | func Test_Request_Cookie_With_Server(t *testing.T) { |
| 1180 | t.Parallel() |
nothing calls this directly
no test coverage detected