mysql_test.go 479 B

123456789101112131415161718192021222324
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "time"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func Test_UpdateJuryExpired(t *testing.T) {
  9. Convey("should return err be nil", t, func() {
  10. err := d.UpdateJuryExpired(context.TODO(), 88889017, time.Now())
  11. So(err, ShouldBeNil)
  12. })
  13. }
  14. func Test_LoadConf(t *testing.T) {
  15. Convey("should return err be nil & map be nil", t, func() {
  16. m, err := d.LoadConf(context.TODO())
  17. So(err, ShouldBeNil)
  18. So(m, ShouldNotBeNil)
  19. })
  20. }