search_test.go 378 B

123456789101112131415161718192021
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestSearchArcs(t *testing.T) {
  8. Convey("SearchArcs", t, func() {
  9. var (
  10. keyword = "comic"
  11. ids = []int64{1, 2, 3}
  12. pn = 1
  13. ps = 30
  14. )
  15. err, _ := d.SearchArcs(context.Background(), keyword, ids, pn, ps) // todo:debug uat 502
  16. So(err, ShouldBeNil)
  17. })
  18. }