MCPcopy Create free account
hub / github.com/astercloud/aster / TestDatabaseFile

Function TestDatabaseFile

pkg/config/paths_test.go:63–70  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

61}
62
63func TestDatabaseFile(t *testing.T) {
64 pathsOnce = sync.Once{}
65
66 file := DatabaseFile()
67 if filepath.Base(file) != "aster.db" {
68 t.Errorf("DatabaseFile should be named 'aster.db', got %s", filepath.Base(file))
69 }
70}
71
72func TestEnsureDir(t *testing.T) {
73 tempDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

DatabaseFileFunction · 0.85

Tested by

no test coverage detected