MCPcopy
hub / github.com/gotify/server / TestDevMode

Function TestDevMode

mode/mode_test.go:10–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestDevMode(t *testing.T) {
11 Set(Dev)
12 assert.Equal(t, Get(), Dev)
13 assert.True(t, IsDev())
14 assert.Equal(t, gin.Mode(), gin.DebugMode)
15}
16
17func TestTestDevMode(t *testing.T) {
18 Set(TestDev)

Callers

nothing calls this directly

Calls 3

SetFunction · 0.85
IsDevFunction · 0.85
GetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…