(t *testing.T)
| 181 | } |
| 182 | |
| 183 | func TestNoMethod(t *testing.T) { |
| 184 | NoMethod(func(c *gin.Context) { |
| 185 | c.String(http.StatusMethodNotAllowed, "method not allowed") |
| 186 | }) |
| 187 | |
| 188 | // This just verifies that NoMethod is callable |
| 189 | // Testing the actual behavior would require a separate engine instance |
| 190 | assert.NotNil(t, engine()) |
| 191 | } |
| 192 | |
| 193 | func TestRoutes(t *testing.T) { |
| 194 | GET("/routes-test", func(c *gin.Context) {}) |