dao_test.go 352 B

12345678910111213141516171819202122
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_Dao(t *testing.T) {
  8. c := context.TODO()
  9. mid := int64(1)
  10. var err error
  11. d := New(nil)
  12. Convey("set cache", t, func() {
  13. PromError("")
  14. PromInfo("")
  15. err = d.SetFeedCache(c, mid, nil)
  16. _, err = d.FeedCache(c, mid)
  17. So(err, ShouldBeNil)
  18. })
  19. }