go test -run Test_Ctx_Host
(t *testing.T)
| 2839 | |
| 2840 | // go test -run Test_Ctx_Host |
| 2841 | func Test_Ctx_Host(t *testing.T) { |
| 2842 | t.Parallel() |
| 2843 | app := New() |
| 2844 | c := app.AcquireCtx(&fasthttp.RequestCtx{}) |
| 2845 | |
| 2846 | c.Request().SetRequestURI("http://google.com/test") |
| 2847 | require.Equal(t, "google.com", c.Host()) |
| 2848 | } |
| 2849 | |
| 2850 | // go test -run Test_Ctx_Host_UntrustedProxy |
| 2851 | func Test_Ctx_Host_UntrustedProxy(t *testing.T) { |
nothing calls this directly
no test coverage detected