up_income_date_test.go 841 B

1234567891011121314151617181920212223242526272829303132
  1. package income
  2. import (
  3. "context"
  4. "testing"
  5. "time"
  6. model "go-common/app/job/main/growup/model/income"
  7. . "github.com/smartystreets/goconvey/convey"
  8. )
  9. func Test_GetUpIncomeTable(t *testing.T) {
  10. Convey("GetUpIncomeTable", t, func() {
  11. _, err := s.income.upIncomeSvr.GetUpIncomeTable(context.Background(), time.Now(), _upIncomeWeekly)
  12. So(err, ShouldBeNil)
  13. })
  14. }
  15. func Test_GetUpIncomeWeeklyAndMonthly(t *testing.T) {
  16. Convey("GetUpIncomeWeeklyAndMonthly", t, func() {
  17. _, _, err := s.income.upIncomeSvr.GetUpIncomeWeeklyAndMonthly(context.Background(), time.Now())
  18. So(err, ShouldBeNil)
  19. })
  20. }
  21. func Test_UpIncomeDBStore(t *testing.T) {
  22. Convey("UpIncomeDBStore", t, func() {
  23. err := s.income.upIncomeSvr.UpIncomeDBStore(context.Background(), map[int64]*model.UpIncome{}, map[int64]*model.UpIncome{})
  24. So(err, ShouldBeNil)
  25. })
  26. }