(t *testing.T)
| 66 | } |
| 67 | |
| 68 | func TestDebugPrintRoutes(t *testing.T) { |
| 69 | re := captureOutput(t, func() { |
| 70 | SetMode(DebugMode) |
| 71 | debugPrintRoute(http.MethodGet, "/path/to/route/:param", HandlersChain{func(c *Context) {}, handlerNameTest}) |
| 72 | SetMode(TestMode) |
| 73 | }) |
| 74 | assert.Regexp(t, `^\[GIN-debug\] GET /path/to/route/:param --> (.*/vendor/)?github.com/gin-gonic/gin.handlerNameTest \(2 handlers\)\n$`, re) |
| 75 | } |
| 76 | |
| 77 | func TestDebugPrintRouteFunc(t *testing.T) { |
| 78 | DebugPrintRouteFunc = func(httpMethod, absolutePath, handlerName string, nuHandlers int) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…