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

Function TestAddSlash

config/config_test.go:44–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func TestAddSlash(t *testing.T) {
45 mode.Set(mode.TestDev)
46 os.Setenv("GOTIFY_UPLOADEDIMAGESDIR", "../data/images")
47 conf := Get()
48 assert.Equal(t, "../data/images"+string(filepath.Separator), conf.UploadedImagesDir)
49 os.Unsetenv("GOTIFY_UPLOADEDIMAGESDIR")
50}
51
52func TestNotAddSlash(t *testing.T) {
53 mode.Set(mode.TestDev)

Callers

nothing calls this directly

Calls 2

SetFunction · 0.92
GetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…