memcache_test.go 470 B

1234567891011121314151617181920212223242526
  1. package archive
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_AddRelatesCache(t *testing.T) {
  8. Convey("AddRelatesCache", t, func() {
  9. d.AddRelatesCache(1, nil)
  10. })
  11. }
  12. func Test_RelatesCache(t *testing.T) {
  13. Convey("RelatesCache", t, func() {
  14. d.RelatesCache(context.TODO(), 1)
  15. })
  16. }
  17. func Test_ViewContributeCache(t *testing.T) {
  18. Convey("ViewContributeCache", t, func() {
  19. d.ViewContributeCache(context.TODO(), 2)
  20. })
  21. }