mirror of
https://github.com/godruoyi/go-snowflake.git
synced 2025-12-23 13:35:16 +00:00
15 lines
228 B
Go
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")
|
|
}
|
|
}
|