up_account_test.go 754 B

12345678910111213141516171819202122232425262728293031
  1. package income
  2. import (
  3. "context"
  4. "testing"
  5. model "go-common/app/job/main/growup/model/income"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func Test_UpAccount1(t *testing.T) {
  9. Convey("UpAccount", t, func() {
  10. _, err := s.income.upAccountSvr.UpAccount(context.Background(), 10)
  11. So(err, ShouldBeNil)
  12. })
  13. }
  14. func Test_BatchInsertUpAccount(t *testing.T) {
  15. Convey("BatchInsertUpAccount", t, func() {
  16. err := s.income.upAccountSvr.BatchInsertUpAccount(context.Background(), map[int64]*model.UpAccount{})
  17. So(err, ShouldBeNil)
  18. })
  19. }
  20. func Test_UpdateUpAccount(t *testing.T) {
  21. Convey("UpdateUpAccount", t, func() {
  22. err := s.income.upAccountSvr.UpdateUpAccount(context.Background(), map[int64]*model.UpAccount{})
  23. So(err, ShouldBeNil)
  24. })
  25. }