go-common/app/job/main/usersuit/dao/pendant/mysql_test.go

49 lines
1.1 KiB
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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)
})
}