Files
go-common/app/interface/main/web-feed/dao/dao_test.go
2019-04-22 18:49:16 +08:00

23 lines
352 B
Go

package dao
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func Test_Dao(t *testing.T) {
c := context.TODO()
mid := int64(1)
var err error
d := New(nil)
Convey("set cache", t, func() {
PromError("")
PromInfo("")
err = d.SetFeedCache(c, mid, nil)
_, err = d.FeedCache(c, mid)
So(err, ShouldBeNil)
})
}