(t *testing.T)
| 115 | } |
| 116 | |
| 117 | func TestDebugPrintWARNINGDefaultWithUnsupportedVersion(t *testing.T) { |
| 118 | runtimeVersion = "go1.23.12" |
| 119 | re := captureOutput(t, func() { |
| 120 | SetMode(DebugMode) |
| 121 | debugPrintWARNINGDefault() |
| 122 | SetMode(TestMode) |
| 123 | }) |
| 124 | assert.Equal(t, "[GIN-debug] [WARNING] Now Gin requires Go 1.25+.\n\n[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.\n\n", re) |
| 125 | } |
| 126 | |
| 127 | func TestDebugPrintWARNINGNew(t *testing.T) { |
| 128 | re := captureOutput(t, func() { |
nothing calls this directly
no test coverage detected