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

Function TestIsDebugging

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

Source from the content-addressed store, hash-verified

21)
22
23func TestIsDebugging(t *testing.T) {
24 SetMode(DebugMode)
25 assert.True(t, IsDebugging())
26 SetMode(ReleaseMode)
27 assert.False(t, IsDebugging())
28 SetMode(TestMode)
29 assert.False(t, IsDebugging())
30}
31
32func TestDebugPrint(t *testing.T) {
33 re := captureOutput(t, func() {

Callers

nothing calls this directly

Calls 2

SetModeFunction · 0.85
IsDebuggingFunction · 0.85

Tested by

no test coverage detected