report_test.go 511 B

12345678910111213141516171819202122232425
  1. package service
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. "go-common/app/admin/main/aegis/model"
  6. )
  7. func TestService_ReportTaskSubmit(t *testing.T) {
  8. convey.Convey("ReportTaskSubmit", t, func(ctx convey.C) {
  9. pm := &model.OptReportSubmit{
  10. BizID: 2,
  11. }
  12. res, err := s.ReportTaskSubmit(cntx, pm)
  13. ctx.So(err, convey.ShouldBeNil)
  14. t.Logf("res.header(%+v)", res.Header)
  15. for _, list := range res.Rows {
  16. for _, item := range list {
  17. t.Logf("item(%+v)", item)
  18. }
  19. }
  20. })
  21. }