search_subtitle_test.go 498 B

123456789101112131415161718192021222324252627
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/admin/main/dm/model"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestSearchSubtitle(t *testing.T) {
  9. var (
  10. arg = &model.SubtitleSearchArg{
  11. Oid: int64(10131981),
  12. }
  13. )
  14. Convey("search subtitles", t, func() {
  15. res, err := testDao.SearchSubtitle(context.Background(), arg)
  16. So(err, ShouldBeNil)
  17. So(res, ShouldNotBeEmpty)
  18. t.Logf("res:%+v", res)
  19. for _, rpt := range res.Result {
  20. t.Logf("======%+v", rpt)
  21. }
  22. })
  23. }