account_test.go 630 B

1234567891011121314151617181920212223242526
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/interface/main/mcn/model/mcnmodel"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestServiceGetUpAccountInfo(t *testing.T) {
  9. convey.Convey("GetUpAccountInfo", t, func(ctx convey.C) {
  10. var (
  11. c = context.Background()
  12. arg = &mcnmodel.McnGetAccountReq{}
  13. )
  14. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  15. result, err := s.GetUpAccountInfo(c, 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. }