go-common/app/job/main/credit/dao/mysql_test.go

25 lines
479 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dao
import (
"context"
"testing"
"time"
. "github.com/smartystreets/goconvey/convey"
)
func Test_UpdateJuryExpired(t *testing.T) {
Convey("should return err be nil", t, func() {
err := d.UpdateJuryExpired(context.TODO(), 88889017, time.Now())
So(err, ShouldBeNil)
})
}
func Test_LoadConf(t *testing.T) {
Convey("should return err be nil & map be nil", t, func() {
m, err := d.LoadConf(context.TODO())
So(err, ShouldBeNil)
So(m, ShouldNotBeNil)
})
}