MCPcopy Index your code
hub / github.com/dnote/dnote / getDefaultTestPaths

Function getDefaultTestPaths

pkg/cli/context/testutils.go:29–37  ·  view source on GitHub ↗

getDefaultTestPaths creates default test paths with all paths pointing to a temp directory

(t *testing.T)

Source from the content-addressed store, hash-verified

27
28// getDefaultTestPaths creates default test paths with all paths pointing to a temp directory
29func getDefaultTestPaths(t *testing.T) Paths {
30 tmpDir := t.TempDir()
31 return Paths{
32 Home: tmpDir,
33 Cache: tmpDir,
34 Config: tmpDir,
35 Data: tmpDir,
36 }
37}
38
39
40// InitTestCtx initializes a test context with an in-memory database

Callers 3

InitTestCtxFunction · 0.85
InitTestCtxWithDBFunction · 0.85
InitTestCtxWithFileDBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected