go-common/app/admin/main/videoup/dao/archive/stats_test.go

17 lines
320 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package archive
import (
"context"
. "github.com/smartystreets/goconvey/convey"
"testing"
"time"
)
func Test_StatsPoints(t *testing.T) {
Convey("test archive", t, WithDao(func(d *Dao) {
now := time.Now()
_, err := d.StatsPoints(context.Background(), now.Add(-time.Hour), now, 1)
So(err, ShouldBeNil)
}))
}