(t *testing.T)
| 106 | } |
| 107 | |
| 108 | func TestDebugPrintWARNINGDefault(t *testing.T) { |
| 109 | re := captureOutput(t, func() { |
| 110 | SetMode(DebugMode) |
| 111 | debugPrintWARNINGDefault() |
| 112 | SetMode(TestMode) |
| 113 | }) |
| 114 | assert.Equal(t, "[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.\n\n", re) |
| 115 | } |
| 116 | |
| 117 | func TestDebugPrintWARNINGDefaultWithUnsupportedVersion(t *testing.T) { |
| 118 | runtimeVersion = "go1.23.12" |
nothing calls this directly
no test coverage detected