up_account_test.go 562 B

12345678910111213141516171819202122
  1. package income
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_TxUpAccountBreach(t *testing.T) {
  8. Convey("TxUpAccountBreach", t, WithService(func(s *Service) {
  9. tx, _ := s.dao.BeginTran(context.Background())
  10. err := s.TxUpAccountBreach(context.Background(), tx, 11, -1, 1)
  11. So(err, ShouldNotBeNil)
  12. }))
  13. Convey("TxUpAccountBreach", t, WithService(func(s *Service) {
  14. tx, _ := s.dao.BeginTran(context.Background())
  15. err := s.TxUpAccountBreach(context.Background(), tx, 11, 1, -1)
  16. So(err, ShouldNotBeNil)
  17. }))
  18. }