up_income_date_test.go 571 B

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