Files
upstream-traggo/config/mode/mode_test.go
upstream-mirror cda7c1a474
Some checks failed
build / build (push) Failing after 3s
snapshot of https://github.com/traggo/server.git (master, 2026-09-16; blobs > 131072B omitted)
2026-09-16 05:24:45 +05:00

18 lines
227 B
Go

package mode
import (
"testing"
"github.com/magiconair/properties/assert"
)
func TestGet(t *testing.T) {
mode = Prod
assert.Equal(t, Prod, Get())
}
func TestSet(t *testing.T) {
Set(Prod)
assert.Equal(t, Prod, mode)
}