github.com/sandwich-go/boost@v1.3.29/xos/func_test.go (about) 1 package xos 2 3 import ( 4 . "github.com/smartystreets/goconvey/convey" 5 "testing" 6 ) 7 8 func TestFunc(t *testing.T) { 9 Convey("func name", t, func() { 10 s, err := FuncFullNameUsingReflect(FuncFullNameUsingReflect) 11 So(err, ShouldBeNil) 12 s, err = FuncBaseNameUsingReflect(FuncFullNameUsingReflect) 13 So(err, ShouldBeNil) 14 So(s, ShouldEqual, "FuncFullNameUsingReflect") 15 s, err = FuncBaseNameUsingReflect(FuncBaseNameUsingReflect) 16 So(err, ShouldBeNil) 17 So(s, ShouldEqual, "FuncBaseNameUsingReflect") 18 }) 19 }