lottery_test.go 622 B

1234567891011121314151617181920212223242526
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoGetLotteryRIDs(t *testing.T) {
  8. convey.Convey("GetLotteryRIDs", t, func(ctx convey.C) {
  9. var (
  10. c = context.Background()
  11. start = int64(1547436245)
  12. end = int64(1547436245)
  13. offset = int64(0)
  14. )
  15. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  16. info, err := d.GetLotteryRIDs(c, start, end, offset)
  17. ctx.Convey("Then err should be nil.info should not be nil.", func(ctx convey.C) {
  18. ctx.So(err, convey.ShouldNotBeNil)
  19. ctx.So(info, convey.ShouldNotBeNil)
  20. })
  21. })
  22. })
  23. }