(t *testing.T)
| 103 | } |
| 104 | |
| 105 | func TestRouterGroupInvalidStaticFile(t *testing.T) { |
| 106 | router := New() |
| 107 | assert.Panics(t, func() { |
| 108 | router.StaticFile("/path/:param", "favicon.ico") |
| 109 | }) |
| 110 | |
| 111 | assert.Panics(t, func() { |
| 112 | router.StaticFile("/path/*param", "favicon.ico") |
| 113 | }) |
| 114 | } |
| 115 | |
| 116 | func TestRouterGroupInvalidStaticFileFS(t *testing.T) { |
| 117 | router := New() |
nothing calls this directly
no test coverage detected