go test -v -run=^$ -bench=Benchmark_Ctx_Scheme -benchmem -count=4
(b *testing.B)
| 4942 | |
| 4943 | // go test -v -run=^$ -bench=Benchmark_Ctx_Scheme -benchmem -count=4 |
| 4944 | func Benchmark_Ctx_Scheme(b *testing.B) { |
| 4945 | app := New() |
| 4946 | c := app.AcquireCtx(&fasthttp.RequestCtx{}) |
| 4947 | |
| 4948 | var res string |
| 4949 | b.ReportAllocs() |
| 4950 | for b.Loop() { |
| 4951 | res = c.Scheme() |
| 4952 | } |
| 4953 | require.Equal(b, "http", res) |
| 4954 | } |
| 4955 | |
| 4956 | // go test -run Test_Ctx_Scheme_TrustedProxy |
| 4957 | func Test_Ctx_Scheme_TrustedProxy(t *testing.T) { |
nothing calls this directly
no test coverage detected