Files
go-snowflake/privateip_test.go
Godruoyi 0f43462de3 🚛 first commit
2021-04-15 11:04:49 +08:00

15 lines
228 B
Go

package snowflake_test
import (
"testing"
"github.com/godruoyi/go-snowflake"
)
func TestPrivateIPToMachineID(t *testing.T) {
mid := snowflake.PrivateIPToMachineID()
if mid <= 0 {
t.Error("MachineID should be > 0")
}
}