report_test.go 708 B

12345678910111213141516171819202122232425262728293031
  1. package service
  2. import (
  3. "testing"
  4. "go-common/app/admin/ep/melloi/model"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_Report(t *testing.T) {
  8. reportSummaryC := model.ReportSummary{
  9. TestName: "testGrpc",
  10. }
  11. Convey("query reportGraph", t, func() {
  12. var strs = []string{"hoopchina1534255529"}
  13. regraphs, _ := s.QueryReGraph(strs)
  14. So(len(regraphs), ShouldBeGreaterThan, 0)
  15. })
  16. Convey("count query report summarys", t, func() {
  17. count, _ := s.CountQueryReportSummarys(&reportSummaryC)
  18. So(count, ShouldBeGreaterThan, 0)
  19. })
  20. Convey("add reportGraph", t, func() {
  21. //reportSummarys:= s.addReportGraph(&reportSummaryC,1,10)
  22. //So(len(reportSummarys), ShouldBeGreaterThan, 0)
  23. })
  24. }