command_test.go 636 B

12345678910111213141516171819202122232425
  1. package upcrmservice
  2. import (
  3. "context"
  4. "go-common/app/admin/main/up/model"
  5. "testing"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestUpcrmserviceCommandRefreshUpRank(t *testing.T) {
  9. convey.Convey("CommandRefreshUpRank", t, func(ctx convey.C) {
  10. var (
  11. con = context.Background()
  12. arg = &model.CommandCommonArg{}
  13. )
  14. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  15. result, err := s.CommandRefreshUpRank(con, arg)
  16. ctx.Convey("Then err should be nil.result should not be nil.", func(ctx convey.C) {
  17. ctx.So(err, convey.ShouldBeNil)
  18. ctx.So(result, convey.ShouldNotBeNil)
  19. })
  20. })
  21. })
  22. }