MCPcopy
hub / github.com/gin-gonic/gin / TestRouterGroupInvalidStaticFileFS

Function TestRouterGroupInvalidStaticFileFS

routergroup_test.go:116–125  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

114}
115
116func TestRouterGroupInvalidStaticFileFS(t *testing.T) {
117 router := New()
118 assert.Panics(t, func() {
119 router.StaticFileFS("/path/:param", "favicon.ico", Dir(".", false))
120 })
121
122 assert.Panics(t, func() {
123 router.StaticFileFS("/path/*param", "favicon.ico", Dir(".", false))
124 })
125}
126
127func TestRouterGroupTooManyHandlers(t *testing.T) {
128 const (

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
DirFunction · 0.85
StaticFileFSMethod · 0.65

Tested by

no test coverage detected