Debian Codegraph @

privateip_test.go

raw symbols SCIP
1 package snowflake_test
2
3 import (
4 "testing"
5
6 "github.com/kankanreno/go-snowflake"
7 )
8
9 func TestPrivateIPToMachineID(t *testing.T) {
10 mid := snowflake.PrivateIPToMachineID()
11 if mid <= 0 {
12 t.Error("MachineID should be > 0")
13 }
14 }