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

Function TestTmpDir

test/tmpdir_test.go:10–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestTmpDir(t *testing.T) {
11 dir := NewTmpDir("test_prefix")
12 assert.NotEmpty(t, dir)
13
14 assert.Contains(t, dir.Path(), "test_prefix")
15 testFilePath := dir.Path("testfile.txt")
16 assert.Contains(t, testFilePath, "test_prefix")
17 assert.Contains(t, testFilePath, "testfile.txt")
18 assert.True(t, strings.HasPrefix(testFilePath, dir.Path()))
19}

Callers

nothing calls this directly

Calls 2

PathMethod · 0.95
NewTmpDirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…