getDefaultTestPaths creates default test paths with all paths pointing to a temp directory
(t *testing.T)
| 27 | |
| 28 | // getDefaultTestPaths creates default test paths with all paths pointing to a temp directory |
| 29 | func 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 |
no outgoing calls
no test coverage detected