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.
24 lines
485 B
24 lines
485 B
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) |
|
})) |
|
}
|
|
|