(b *testing.B)
| 3922 | } |
| 3923 | |
| 3924 | func Benchmark_Ctx_IP(b *testing.B) { |
| 3925 | app := New() |
| 3926 | c := app.AcquireCtx(&fasthttp.RequestCtx{}) |
| 3927 | c.Request() |
| 3928 | var res string |
| 3929 | b.ReportAllocs() |
| 3930 | for b.Loop() { |
| 3931 | res = c.IP() |
| 3932 | } |
| 3933 | require.Equal(b, "0.0.0.0", res) |
| 3934 | } |
| 3935 | |
| 3936 | func Benchmark_Ctx_IP_With_ProxyHeader_Chain(b *testing.B) { |
| 3937 | app := New(Config{ |
nothing calls this directly
no test coverage detected