stats_test.go 320 B

12345678910111213141516
  1. package archive
  2. import (
  3. "context"
  4. . "github.com/smartystreets/goconvey/convey"
  5. "testing"
  6. "time"
  7. )
  8. func Test_StatsPoints(t *testing.T) {
  9. Convey("test archive", t, WithDao(func(d *Dao) {
  10. now := time.Now()
  11. _, err := d.StatsPoints(context.Background(), now.Add(-time.Hour), now, 1)
  12. So(err, ShouldBeNil)
  13. }))
  14. }