elec_test.go 365 B

123456789101112131415161718
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDao_ElecInfo(t *testing.T) {
  8. convey.Convey("test elec info", t, func(ctx convey.C) {
  9. mid := int64(28272030)
  10. paymid := int64(0)
  11. data, err := d.ElecInfo(context.Background(), mid, paymid)
  12. convey.So(err, convey.ShouldBeNil)
  13. convey.Printf("%v", data)
  14. })
  15. }