(t *testing.T)
| 811 | } |
| 812 | |
| 813 | func Test_Client_Invalid_URL(t *testing.T) { |
| 814 | t.Parallel() |
| 815 | |
| 816 | app, dial, start := createHelperServer(t) |
| 817 | |
| 818 | app.Get("/", func(c fiber.Ctx) error { |
| 819 | return c.SendString(c.Hostname()) |
| 820 | }) |
| 821 | |
| 822 | go start() |
| 823 | |
| 824 | _, err := New().SetDial(dial). |
| 825 | R(). |
| 826 | Get("http//example") |
| 827 | |
| 828 | require.ErrorIs(t, err, ErrURLFormat) |
| 829 | } |
| 830 | |
| 831 | func Test_Client_Unsupported_Protocol(t *testing.T) { |
| 832 | t.Parallel() |
nothing calls this directly
no test coverage detected