(t *testing.T)
| 966 | } |
| 967 | |
| 968 | func Test_App_Remove_Route_Nested(t *testing.T) { |
| 969 | t.Parallel() |
| 970 | app := New() |
| 971 | |
| 972 | api := app.Group("/api") |
| 973 | |
| 974 | v1 := api.Group("/v1") |
| 975 | v1.Get("/test", func(c Ctx) error { |
| 976 | return c.SendStatus(StatusOK) |
| 977 | }) |
| 978 | |
| 979 | verifyRequest(t, app, "/api/v1/test", StatusOK) |
| 980 | app.RemoveRoute("/api/v1/test", MethodGet) |
| 981 | |
| 982 | verifyThereAreNoRoutes(t, app) |
| 983 | } |
| 984 | |
| 985 | func Test_App_Remove_Route_Parameterized(t *testing.T) { |
| 986 | t.Parallel() |
nothing calls this directly
no test coverage detected