(t *testing.T)
| 1857 | } |
| 1858 | |
| 1859 | func Test_Client_PathParam_With_Server(t *testing.T) { |
| 1860 | app, dial, start := createHelperServer(t) |
| 1861 | |
| 1862 | app.Get("/:test", func(c fiber.Ctx) error { |
| 1863 | return c.SendString(c.Params("test")) |
| 1864 | }) |
| 1865 | |
| 1866 | go start() |
| 1867 | |
| 1868 | resp, err := New().SetDial(dial). |
| 1869 | SetPathParam("path", "test"). |
| 1870 | Get("http://example.com/:path") |
| 1871 | |
| 1872 | require.NoError(t, err) |
| 1873 | require.Equal(t, fiber.StatusOK, resp.StatusCode()) |
| 1874 | require.Equal(t, "test", resp.String()) |
| 1875 | } |
| 1876 | |
| 1877 | func Test_Client_TLS(t *testing.T) { |
| 1878 | t.Parallel() |
nothing calls this directly
no test coverage detected