go-common/app/interface/main/credit/dao/mc_test.go
2019-04-22 18:49:16 +08:00

31 lines
515 B
Go

package dao
import (
"context"
"testing"
credit "go-common/app/interface/main/credit/model"
. "github.com/smartystreets/goconvey/convey"
)
// TestMcJury .
func TestMcJury(t *testing.T) {
var (
c = context.TODO()
op = &credit.Opinion{
Mid: 1,
OpID: 632,
Content: "aaaaa",
}
)
Convey("return someting", t, func() {
d.AddOpinionCache(c, op)
mop, miss, err := d.OpinionsCache(c, []int64{632, 631})
So(err, ShouldBeNil)
So(miss, ShouldNotBeNil)
So(mop, ShouldNotBeNil)
})
}