MCPcopy
hub / github.com/dnote/dnote / testCustomDirs

Function testCustomDirs

pkg/dirs/dirs_test.go:31–39  ·  view source on GitHub ↗
(t *testing.T, testCases []envTestCase)

Source from the content-addressed store, hash-verified

29}
30
31func testCustomDirs(t *testing.T, testCases []envTestCase) {
32 for _, tc := range testCases {
33 t.Setenv(tc.envKey, tc.envVal)
34
35 Reload()
36
37 assert.Equal(t, *tc.got, tc.expected, "result mismatch")
38 }
39}

Callers 1

TestCustomDirsFunction · 0.85

Calls 2

EqualFunction · 0.92
ReloadFunction · 0.85

Tested by

no test coverage detected