gitee.com/gricks/utils@v1.0.8/ip_test.go (about)

     1  package utils
     2  
     3  import (
     4  	"testing"
     5  
     6  	. "github.com/smartystreets/goconvey/convey"
     7  )
     8  
     9  func Test_getInterfaceIP(t *testing.T) {
    10  	Convey("getInterfaceIP", t, func() {
    11  		//ip, err := getInterfaceIP(true)
    12  		//So(err, ShouldBeNil)
    13  		//So(ip, ShouldEqual, "192.168.0.60")
    14  	})
    15  }