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

Function TestRouterGroupInvalidStatic

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

Source from the content-addressed store, hash-verified

92}
93
94func TestRouterGroupInvalidStatic(t *testing.T) {
95 router := New()
96 assert.Panics(t, func() {
97 router.Static("/path/:param", "/")
98 })
99
100 assert.Panics(t, func() {
101 router.Static("/path/*param", "/")
102 })
103}
104
105func TestRouterGroupInvalidStaticFile(t *testing.T) {
106 router := New()

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
StaticMethod · 0.65

Tested by

no test coverage detected