MCPcopy
hub / github.com/gin-gonic/gin / TestDebugPrintWARNINGDefault

Function TestDebugPrintWARNINGDefault

debug_test.go:108–115  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

106}
107
108func 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
117func TestDebugPrintWARNINGDefaultWithUnsupportedVersion(t *testing.T) {
118 runtimeVersion = "go1.23.12"

Callers

nothing calls this directly

Calls 3

captureOutputFunction · 0.85
SetModeFunction · 0.85
debugPrintWARNINGDefaultFunction · 0.85

Tested by

no test coverage detected