memcache_test.go 482 B

123456789101112131415161718192021222324
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/interface/main/app-player/model/archive"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestAddArchiveCache(t *testing.T) {
  9. var (
  10. c = context.Background()
  11. aid = int64(1)
  12. arc = &archive.Info{Aid: 1}
  13. )
  14. convey.Convey("AddArchiveCache", t, func(ctx convey.C) {
  15. err := d.AddArchiveCache(c, aid, arc)
  16. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  17. ctx.So(err, convey.ShouldBeNil)
  18. })
  19. })
  20. }