task_mc_test.go 559 B

12345678910111213141516171819202122232425262728
  1. package dao
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestDaoIsConsumerOn(t *testing.T) {
  7. convey.Convey("IsConsumerOn", t, func(ctx convey.C) {
  8. })
  9. }
  10. func TestDaomcKey(t *testing.T) {
  11. convey.Convey("mcKey", t, func(ctx convey.C) {
  12. var (
  13. bizid = int(0)
  14. flowid = int(0)
  15. uid = int64(0)
  16. )
  17. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  18. p1 := mcKey(bizid, flowid, uid)
  19. ctx.Convey("Then p1 should not be nil.", func(ctx convey.C) {
  20. ctx.So(p1, convey.ShouldNotBeNil)
  21. })
  22. })
  23. })
  24. }