report_test.go 607 B

1234567891011121314151617181920212223242526272829303132
  1. package report
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestReportReport(t *testing.T) {
  8. convey.Convey("Report", t, func(ctx convey.C) {
  9. var (
  10. c = context.Background()
  11. )
  12. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  13. _, err := d.Report(c, "archive_click")
  14. println(err)
  15. })
  16. })
  17. }
  18. func TestReportCheckJob(t *testing.T) {
  19. convey.Convey("CheckJob", t, func(ctx convey.C) {
  20. var (
  21. c = context.Background()
  22. urls = ""
  23. )
  24. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  25. d.CheckJob(c, urls)
  26. })
  27. })
  28. }