Files
go-common/app/interface/main/account/dao/vip/oauth2_client_test.go
2019-04-22 18:49:16 +08:00

25 lines
482 B
Go

package vip
import (
"net/url"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestVipsign(t *testing.T) {
convey.Convey("sign", t, func(convCtx convey.C) {
var (
params url.Values
path = ""
secret = ""
)
convCtx.Convey("When everything goes positive", func(convCtx convey.C) {
p1 := sign(params, path, secret)
convCtx.Convey("Then p1 should not be nil.", func(convCtx convey.C) {
convCtx.So(p1, convey.ShouldNotBeNil)
})
})
})
}