Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
package service
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
"go-common/app/job/main/dm2/model"
)
func TestTransferDMS(t *testing.T) {
Convey("test NewCommentList", t, func() {
ll, err := svr.transferDMS(context.TODO(), 1, 1012, 0, 10)
So(err, ShouldBeNil)
So(ll, ShouldNotBeEmpty)
})
}
func TestTransfer(t *testing.T) {
trans := &model.Transfer{
ID: 265,
FromCid: 1012,
ToCid: 1211,
Mid: 0,
Dmid: 123,
Offset: 0,
State: 0,
}
Convey("transfer", t, func() {
svr.transfer(context.TODO(), trans)
})
}