credit_log_test.go 522 B

1234567891011121314151617181920212223
  1. package upcrm
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestUpcrmGetCreditLog(t *testing.T) {
  7. convey.Convey("GetCreditLog", t, func(ctx convey.C) {
  8. var (
  9. mid = int64(1)
  10. limit = int(0)
  11. )
  12. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  13. result, err := d.GetCreditLog(mid, limit)
  14. ctx.Convey("Then err should be nil.result should not be nil.", func(ctx convey.C) {
  15. ctx.So(err, convey.ShouldBeNil)
  16. ctx.So(result, convey.ShouldBeNil)
  17. })
  18. })
  19. })
  20. }