audit_result_test.go 660 B

12345678910111213141516171819202122232425262728293031
  1. package dao
  2. import (
  3. "context"
  4. "go-common/app/admin/main/tv/model"
  5. "testing"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestDaoArcES(t *testing.T) {
  9. var (
  10. c = context.Background()
  11. req = &model.ReqArcES{
  12. AID: "10110475",
  13. Valid: "1",
  14. Result: "1",
  15. Mids: []int64{477132},
  16. Typeids: []int32{24},
  17. MtimeOrder: "1",
  18. PubtimeOrder: "1",
  19. }
  20. )
  21. convey.Convey("ArcES", t, func(ctx convey.C) {
  22. data, err := d.ArcES(c, req)
  23. ctx.Convey("Then err should be nil.data should not be nil.", func(ctx convey.C) {
  24. ctx.So(err, convey.ShouldBeNil)
  25. ctx.So(data, convey.ShouldNotBeNil)
  26. })
  27. })
  28. }