msg_test.go 671 B

1234567891011121314151617181920212223242526272829303132
  1. package service
  2. import (
  3. "testing"
  4. "go-common/app/admin/main/mcn/model"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestServicesendMsg(t *testing.T) {
  8. convey.Convey("sendMsg", t, func(ctx convey.C) {
  9. var (
  10. arg = &model.ArgMsg{}
  11. )
  12. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  13. s.sendMsg(arg)
  14. ctx.Convey("No return values", func(ctx convey.C) {
  15. })
  16. })
  17. })
  18. }
  19. func TestServicesetMsgTypeMap(t *testing.T) {
  20. convey.Convey("setMsgTypeMap", t, func(ctx convey.C) {
  21. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  22. s.setMsgTypeMap()
  23. ctx.Convey("No return values", func(ctx convey.C) {
  24. })
  25. })
  26. })
  27. }