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,24 @@
package dao
import (
"context"
"testing"
"go-common/app/admin/main/reply/model"
. "github.com/smartystreets/goconvey/convey"
)
func TestEvent(t *testing.T) {
var (
mid = int64(1)
sub = &model.Subject{}
rp = &model.Reply{Content: &model.ReplyContent{}}
report = &model.Report{}
c = context.Background()
)
Convey("pub a event", t, WithDao(func(d *Dao) {
err := d.PubEvent(c, model.EventReportAdd, mid, sub, rp, report)
So(err, ShouldBeNil)
}))
}