Improve test coverage

This commit is contained in:
TwinProduction
2020-10-21 22:10:58 -04:00
parent 7dc200d887
commit 20515b5dd4
2 changed files with 20 additions and 0 deletions

View File

@ -298,3 +298,10 @@ func TestLoadFileThatDoesNotExist(t *testing.T) {
t.Error("Should've returned an error, because the file specified doesn't exist")
}
}
func TestLoadDefaultConfigurationFile(t *testing.T) {
err := LoadDefaultConfiguration()
if err == nil {
t.Error("Should've returned an error, because there's no configuration files at the default path nor the default fallback path")
}
}