github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/conf/id/id_gen_z_test.go (about) 1 package id_test 2 3 import ( 4 "testing" 5 6 . "github.com/onsi/gomega" 7 8 "github.com/machinefi/w3bstream/pkg/depends/conf/id" 9 ) 10 11 func TestFromIP(t *testing.T) { 12 g, err := id.FromLocalIP() 13 NewWithT(t).Expect(err).To(BeNil()) 14 15 sfid, err := g.ID() 16 NewWithT(t).Expect(err).To(BeNil()) 17 t.Log(sfid) 18 }