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

Function Test_App_Remove_Route_Parameterized

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

Source from the content-addressed store, hash-verified

983}
984
985func Test_App_Remove_Route_Parameterized(t *testing.T) {
986 t.Parallel()
987 app := New()
988
989 app.Get("/test/:id", func(c Ctx) error {
990 return c.SendStatus(StatusOK)
991 })
992 verifyRequest(t, app, "/test/:id", StatusOK)
993 app.RemoveRoute("/test/:id", MethodGet)
994
995 verifyThereAreNoRoutes(t, app)
996}
997
998func Test_App_Remove_Route(t *testing.T) {
999 t.Parallel()

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected