TestPathConfigNotExists asserts that `Path` identifies non-existent config files
(t *testing.T)
| 8 | // TestPathConfigNotExists asserts that `Path` identifies non-existent config |
| 9 | // files |
| 10 | func 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 |
| 23 | func TestPathConfigExists(t *testing.T) { |