Added branch to test for valid key in GetPath

pull/13/head
Paulo Truta 2021-06-12 14:32:41 +00:00
parent a1c0529fda
commit cf56526f97
1 changed files with 7 additions and 0 deletions

View File

@ -86,6 +86,13 @@ func TestGetPath(t *testing.T) {
if result != "" { if result != "" {
t.Log("Expected empty result but got ", result) t.Log("Expected empty result but got ", result)
} }
validPathKey := "wsPath"
result = GetPath(validPathKey)
if result != "/home/system/components/ws/" {
t.Log("Expected /home/system/components/ws/ but got", result)
t.Fail()
}
} }
func TestGetSQLiteFormattedDateTime(t *testing.T) { func TestGetSQLiteFormattedDateTime(t *testing.T) {