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.
 
 
 

30 lines
515 B

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)
})
}