host_test.go 149 B

1234567891011
  1. package sysx
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/assert"
  5. )
  6. func TestHostname(t *testing.T) {
  7. assert.True(t, len(Hostname()) > 0)
  8. }