go-common/app/interface/main/credit/dao/mc_test.go

31 lines
515 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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)
})
}