ecode_test.go 337 B

1234567891011121314151617
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoGetCodes(t *testing.T) {
  8. convey.Convey("GetCodes", t, func() {
  9. res, err := d.GetCodes(context.Background(), "0", "20000")
  10. t.Logf("res:%+v", res)
  11. convey.So(err, convey.ShouldBeNil)
  12. convey.So(res, convey.ShouldNotBeNil)
  13. })
  14. }