memcache_test.go 414 B

12345678910111213141516171819202122
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_Ping(t *testing.T) {
  8. Convey("ping mc ", t, func() {
  9. err := d.Ping(context.Background())
  10. So(err, ShouldBeNil)
  11. })
  12. }
  13. func Test_ReportsCacheByMids(t *testing.T) {
  14. Convey("ReportsCacheByMids", t, func() {
  15. _, _, err := d.ReportsCacheByMids(context.Background(), []int64{0, 1})
  16. So(err, ShouldBeNil)
  17. })
  18. }