av_income_stat_test.go 466 B

12345678910111213141516171819202122
  1. package income
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_AvIncomeStat(t *testing.T) {
  8. Convey("AvIncomeStat", t, func() {
  9. _, _, err := d.AvIncomeStat(context.Background(), 0, 2000)
  10. So(err, ShouldBeNil)
  11. })
  12. }
  13. func Test_InsertAvIncomeStat(t *testing.T) {
  14. Convey("InsertAvIncomeStat", t, func() {
  15. _, err := d.InsertAvIncomeStat(context.Background(), "(123,2,6,1,'2018-06-01',100)")
  16. So(err, ShouldBeNil)
  17. })
  18. }