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

Function TestTestDevMode

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

Source from the content-addressed store, hash-verified

15}
16
17func TestTestDevMode(t *testing.T) {
18 Set(TestDev)
19 assert.Equal(t, Get(), TestDev)
20 assert.True(t, IsDev())
21 assert.Equal(t, gin.Mode(), gin.TestMode)
22}
23
24func TestProdMode(t *testing.T) {
25 Set(Prod)

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…