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

Function NewTmpDir

test/tmpdir.go:24–27  ·  view source on GitHub ↗

NewTmpDir returns a new handle to a tmp dir.

(prefix string)

Source from the content-addressed store, hash-verified

22
23// NewTmpDir returns a new handle to a tmp dir.
24func NewTmpDir(prefix string) TmpDir {
25 dir, _ := os.MkdirTemp("", prefix)
26 return TmpDir{dir}
27}

Callers 14

SetupSuiteMethod · 0.92
SetupSuiteMethod · 0.92
BeforeTestMethod · 0.92
BeforeTestMethod · 0.92
TestInvalidDialectFunction · 0.92
TestCreateSqliteFolderFunction · 0.92
TestPanicsOnMkdirErrorFunction · 0.92

Calls

no outgoing calls

Tested by 14

SetupSuiteMethod · 0.74
SetupSuiteMethod · 0.74
BeforeTestMethod · 0.74
BeforeTestMethod · 0.74
TestInvalidDialectFunction · 0.74
TestCreateSqliteFolderFunction · 0.74
TestPanicsOnMkdirErrorFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…