Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package dao
import (
"context"
"go-common/library/ecode"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestVerifyDsb(t *testing.T) {
convey.Convey("VerifyDsb", t, func() {
sid := "1234567890"
_, err := d.VerifyDsb(context.Background(), sid)
if err == ecode.NoLogin {
err = nil
}
convey.So(err, convey.ShouldBeNil)
})
}
func TestNewSession(t *testing.T) {
convey.Convey("NewSession", t, func() {
res := d.NewSession(context.Background())
convey.So(res, convey.ShouldNotBeNil)
})
}