(t *testing.T)
| 2031 | } |
| 2032 | |
| 2033 | func Test_NextCustom_Matched404(t *testing.T) { |
| 2034 | t.Parallel() |
| 2035 | app := newCustomApp() |
| 2036 | app.RebuildTree() |
| 2037 | |
| 2038 | fctx := &fasthttp.RequestCtx{} |
| 2039 | fctx.Request.Header.SetMethod(MethodGet) |
| 2040 | fctx.Request.SetRequestURI("/none") |
| 2041 | |
| 2042 | ctx := app.AcquireCtx(fctx) |
| 2043 | ctx.setMatched(true) |
| 2044 | defer app.ReleaseCtx(ctx) |
| 2045 | |
| 2046 | matched, err := app.nextCustom(ctx) |
| 2047 | require.False(t, matched) |
| 2048 | var e *Error |
| 2049 | require.ErrorAs(t, err, &e) |
| 2050 | require.Equal(t, StatusNotFound, e.Code) |
| 2051 | } |
| 2052 | |
| 2053 | func Test_NextCustom_SkipMountAndNoHandlers(t *testing.T) { |
| 2054 | t.Parallel() |
nothing calls this directly
no test coverage detected