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

Function TestCustomDirs

pkg/dirs/dirs_unix_test.go:59–82  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

57}
58
59func TestCustomDirs(t *testing.T) {
60 testCases := []envTestCase{
61 {
62 envKey: "XDG_CONFIG_HOME",
63 envVal: "~/custom/config",
64 got: &ConfigHome,
65 expected: "~/custom/config",
66 },
67 {
68 envKey: "XDG_DATA_HOME",
69 envVal: "~/custom/data",
70 got: &DataHome,
71 expected: "~/custom/data",
72 },
73 {
74 envKey: "XDG_CACHE_HOME",
75 envVal: "~/custom/cache",
76 got: &CacheHome,
77 expected: "~/custom/cache",
78 },
79 }
80
81 testCustomDirs(t, testCases)
82}

Callers

nothing calls this directly

Calls 1

testCustomDirsFunction · 0.85

Tested by

no test coverage detected