MCPcopy
hub / github.com/gofiber/fiber / Test_App_Remove_Route_Nested

Function Test_App_Remove_Route_Nested

router_test.go:968–983  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

966}
967
968func 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
985func Test_App_Remove_Route_Parameterized(t *testing.T) {
986 t.Parallel()

Callers

nothing calls this directly

Calls 7

verifyRequestFunction · 0.85
verifyThereAreNoRoutesFunction · 0.85
RemoveRouteMethod · 0.80
NewFunction · 0.70
GroupMethod · 0.65
GetMethod · 0.65
SendStatusMethod · 0.65

Tested by

no test coverage detected