adding documetnation for smartctl exit codes and addl test.

This commit is contained in:
Jason Kulatunga
2022-05-02 10:26:25 -07:00
parent 646d0eff15
commit 97f6564c1e
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -8,6 +8,19 @@ import (
"testing"
)
func TestConfiguration_InvalidConfigPath(t *testing.T) {
t.Parallel()
//setup
testConfig, _ := config.Create()
//test
err := testConfig.ReadConfig("does_not_exist.yaml")
//assert
require.Error(t, err, "should return an error")
}
func TestConfiguration_GetScanOverrides_Simple(t *testing.T) {
t.Parallel()