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

Function TestDebugPrintWARNINGDefaultWithUnsupportedVersion

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

Source from the content-addressed store, hash-verified

115}
116
117func 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
127func TestDebugPrintWARNINGNew(t *testing.T) {
128 re := captureOutput(t, func() {

Callers

nothing calls this directly

Calls 3

captureOutputFunction · 0.85
SetModeFunction · 0.85
debugPrintWARNINGDefaultFunction · 0.85

Tested by

no test coverage detected