stat_test.go 338 B

123456789101112131415161718192021
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestStats(t *testing.T) {
  8. var (
  9. oid = int64(1)
  10. typ = int32(1)
  11. cnt = int32(1)
  12. c = context.Background()
  13. )
  14. Convey("test stats count", t, WithDao(func(d *Dao) {
  15. err := d.SendStats(c, typ, oid, cnt)
  16. So(err, ShouldBeNil)
  17. }))
  18. }