MCPcopy
hub / github.com/cheat/cheat / TestPathConfigNotExists

Function TestPathConfigNotExists

internal/config/path_test.go:10–20  ·  view source on GitHub ↗

TestPathConfigNotExists asserts that `Path` identifies non-existent config files

(t *testing.T)

Source from the content-addressed store, hash-verified

8// TestPathConfigNotExists asserts that `Path` identifies non-existent config
9// files
10func TestPathConfigNotExists(t *testing.T) {
11
12 // package (invalid) cheatpaths
13 paths := []string{"/cheat-test-conf-does-not-exist"}
14
15 // assert
16 if _, err := Path(paths); err == nil {
17 t.Errorf("failed to identify non-existent config file")
18 }
19
20}
21
22// TestPathConfigExists asserts that `Path` identifies existent config files
23func TestPathConfigExists(t *testing.T) {

Callers

nothing calls this directly

Calls 1

PathFunction · 0.70

Tested by

no test coverage detected