lottery_test.go 623 B

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