You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
352 B
22 lines
352 B
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) |
|
}) |
|
}
|
|
|