mysql_mask_test.go 555 B

123456789101112131415161718192021222324252627
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestMaskUps(t *testing.T) {
  8. Convey("test mask ups", t, func() {
  9. res, total, err := testDao.MaskUps(context.Background(), 1, 50)
  10. So(err, ShouldBeNil)
  11. So(res, ShouldNotBeEmpty)
  12. So(total, ShouldNotBeNil)
  13. t.Log(res, total)
  14. })
  15. }
  16. func TestMaskUpOpen(t *testing.T) {
  17. Convey("test mask up open", t, func() {
  18. res, err := testDao.MaskUpOpen(context.Background(), 27515266, 1, "")
  19. So(err, ShouldBeNil)
  20. So(res, ShouldNotBeEmpty)
  21. t.Log(res)
  22. })
  23. }