(t *testing.T)
| 941 | } |
| 942 | |
| 943 | func Test_App_Remove_Route_By_Name(t *testing.T) { |
| 944 | t.Parallel() |
| 945 | app := New() |
| 946 | |
| 947 | app.Get("/api/test", func(c Ctx) error { |
| 948 | return c.SendStatus(StatusOK) |
| 949 | }).Name("test") |
| 950 | |
| 951 | app.RemoveRouteByName("test", MethodGet) |
| 952 | app.RebuildTree() |
| 953 | |
| 954 | verifyRequest(t, app, "/test", StatusNotFound) |
| 955 | verifyThereAreNoRoutes(t, app) |
| 956 | } |
| 957 | |
| 958 | func Test_App_Remove_Route_By_Name_Non_Existing_Route(t *testing.T) { |
| 959 | t.Parallel() |
nothing calls this directly
no test coverage detected