recommend_test.go 643 B

123456789101112131415161718192021222324252627
  1. package service
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestServiceMcnRecommendCron(t *testing.T) {
  7. convey.Convey("McnRecommendCron", t, func(ctx convey.C) {
  8. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  9. s.McnRecommendCron()
  10. ctx.Convey("No return values", func(ctx convey.C) {
  11. })
  12. })
  13. })
  14. }
  15. func TestServiceDealFailRecommendCron(t *testing.T) {
  16. convey.Convey("DealFailRecommendCron", t, func(ctx convey.C) {
  17. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  18. s.DealFailRecommendCron()
  19. ctx.Convey("No return values", func(ctx convey.C) {
  20. })
  21. })
  22. })
  23. }