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

Function TestDataDir

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

Source from the content-addressed store, hash-verified

34}
35
36func TestDataDir(t *testing.T) {
37 pathsOnce = sync.Once{}
38
39 dir := DataDir()
40 if dir == "" {
41 t.Error("DataDir should not be empty")
42 }
43}
44
45func TestLogDir(t *testing.T) {
46 pathsOnce = sync.Once{}

Callers

nothing calls this directly

Calls 2

DataDirFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected