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,48 @@
package pendant
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestDaoUpEquipMID(t *testing.T) {
Convey("should return err be nil", t, func() {
res, err := d.UpEquipMID(context.Background(), 11)
So(err, ShouldBeNil)
So(res, ShouldNotBeNil)
})
}
func TestDaoUpEquipExpires(t *testing.T) {
Convey("should return err be nil", t, func() {
res, err := d.UpEquipExpires(context.TODO(), 11, 123121)
So(err, ShouldBeNil)
So(res, ShouldNotBeNil)
})
}
func TestDaoPendantEquipMID(t *testing.T) {
Convey("should return err be nil", t, func() {
res, err := d.PendantEquipMID(context.TODO(), 11)
So(err, ShouldBeNil)
So(res, ShouldNotBeNil)
})
}
func TestDaoExpireEquipPendant(t *testing.T) {
Convey("should return err be nil", t, func() {
res, err := d.ExpireEquipPendant(context.TODO(), 11)
So(err, ShouldBeNil)
So(res, ShouldNotBeNil)
})
}
func TestDaoPendantEquipGidPid(t *testing.T) {
Convey("should return err be nil", t, func() {
res, err := d.PendantEquipGidPid(context.TODO(), 11)
So(err, ShouldBeNil)
So(res, ShouldNotBeNil)
})
}