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

Function Test_App_HandlersCount

app_test.go:2651–2663  ·  view source on GitHub ↗

go test -run Test_App_HandlersCount

(t *testing.T)

Source from the content-addressed store, hash-verified

2649
2650// go test -run Test_App_HandlersCount
2651func Test_App_HandlersCount(t *testing.T) {
2652 t.Parallel()
2653 app := New()
2654
2655 app.Use("/path0", testEmptyHandler)
2656 app.Get("/path2", testEmptyHandler)
2657 app.Post("/path3", testEmptyHandler)
2658
2659 app.startupProcess()
2660
2661 count := app.HandlersCount()
2662 require.Equal(t, uint32(4), count)
2663}
2664
2665// go test -run Test_App_ReadTimeout
2666func Test_App_ReadTimeout(t *testing.T) {

Callers

nothing calls this directly

Calls 6

startupProcessMethod · 0.80
HandlersCountMethod · 0.80
NewFunction · 0.70
UseMethod · 0.65
GetMethod · 0.65
PostMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…