dao.cache_test.go 578 B

1234567891011121314151617181920212223242526
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaouserLikeList(t *testing.T) {
  8. var (
  9. c = context.TODO()
  10. id = int64(1)
  11. businessID = int64(1)
  12. state = int8(1)
  13. start = int(1)
  14. end = int(1)
  15. )
  16. convey.Convey("userLikeList", t, func(ctx convey.C) {
  17. _, err := d.userLikeList(c, id, businessID, state, start, end)
  18. ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) {
  19. ctx.So(err, convey.ShouldBeNil)
  20. // ctx.So(res, convey.ShouldNotBeNil)
  21. })
  22. })
  23. }