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

Function TestProdMode

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

Source from the content-addressed store, hash-verified

22}
23
24func TestProdMode(t *testing.T) {
25 Set(Prod)
26 assert.Equal(t, Get(), Prod)
27 assert.False(t, IsDev())
28 assert.Equal(t, gin.Mode(), gin.ReleaseMode)
29}
30
31func TestInvalidMode(t *testing.T) {
32 assert.Panics(t, func() {

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…