Files
go-common/app/admin/main/growup/service/income/up_account_test.go
2019-04-22 18:49:16 +08:00

23 lines
562 B
Go

package income
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func Test_TxUpAccountBreach(t *testing.T) {
Convey("TxUpAccountBreach", t, WithService(func(s *Service) {
tx, _ := s.dao.BeginTran(context.Background())
err := s.TxUpAccountBreach(context.Background(), tx, 11, -1, 1)
So(err, ShouldNotBeNil)
}))
Convey("TxUpAccountBreach", t, WithService(func(s *Service) {
tx, _ := s.dao.BeginTran(context.Background())
err := s.TxUpAccountBreach(context.Background(), tx, 11, 1, -1)
So(err, ShouldNotBeNil)
}))
}