Merge pull request #324 from molecul/patch-1

Add new test 'TestHostGuid'
This commit is contained in:
shirou 2017-03-03 22:09:40 +09:00 committed by GitHub
commit abc5c87f27
1 changed files with 12 additions and 0 deletions

View File

@ -91,3 +91,15 @@ func TestUserStat_String(t *testing.T) {
t.Errorf("UserStat string is invalid: %v", v)
}
}
func TestHostGuid(t *testing.T) {
hi, err := host.Info()
if err != nil {
t.Error(err)
}
if hi.HostID == "" {
t.Error("Host id is empty")
} else {
t.Logf("Host id value: %v", hi.HostID)
}
}