MCPcopy Index your code
hub / github.com/gotify/server / Clean

Method Clean

test/tmpdir.go:19–21  ·  view source on GitHub ↗

Clean removes the TmpDir.

()

Source from the content-addressed store, hash-verified

17
18// Clean removes the TmpDir.
19func (c TmpDir) Clean() error {
20 return os.RemoveAll(c.path)
21}
22
23// NewTmpDir returns a new handle to a tmp dir.
24func NewTmpDir(prefix string) TmpDir {

Callers 13

TestInvalidDialectFunction · 0.95
TestCreateSqliteFolderFunction · 0.95
TestPanicsOnMkdirErrorFunction · 0.95
TestWithWdFunction · 0.95
TearDownSuiteMethod · 0.80
TearDownSuiteMethod · 0.80
AfterTestMethod · 0.80

Calls

no outgoing calls

Tested by 13

TestInvalidDialectFunction · 0.76
TestCreateSqliteFolderFunction · 0.76
TestPanicsOnMkdirErrorFunction · 0.76
TestWithWdFunction · 0.76
TearDownSuiteMethod · 0.64
TearDownSuiteMethod · 0.64
AfterTestMethod · 0.64