mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-19 02:59:23 +08:00
12 lines
205 B
Go
12 lines
205 B
Go
package monitoring
|
|
|
|
import "testing"
|
|
|
|
func TestOsName(t *testing.T) {
|
|
if got := OSName(); got == "" {
|
|
t.Errorf("OSName() = %v, want non-empty string", got)
|
|
} else {
|
|
t.Logf("OSName() = %v", got)
|
|
}
|
|
}
|