Finish tests for helper methods

This commit is contained in:
Tai Groot
2021-05-15 19:07:47 -07:00
parent 64249bf8e6
commit b1346b7992
3 changed files with 107 additions and 4 deletions

View File

@@ -30,6 +30,9 @@ func GetMemoryUsage(ctx context.Context, unit string, opts Options) (int, error)
if err != nil {
return -1, err
}
if value == "[not set]" {
return -1, ErrValueNotSet
}
return strconv.Atoi(value)
}