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

Function TestNotAddSlash

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

Source from the content-addressed store, hash-verified

50}
51
52func TestNotAddSlash(t *testing.T) {
53 mode.Set(mode.TestDev)
54 os.Setenv("GOTIFY_UPLOADEDIMAGESDIR", "../data/")
55 conf := Get()
56 assert.Equal(t, "../data/", conf.UploadedImagesDir)
57 os.Unsetenv("GOTIFY_UPLOADEDIMAGESDIR")
58}
59
60func TestFileWithSyntaxErrors(t *testing.T) {
61 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…