crm_test.go 494 B

12345678910111213141516171819202122
  1. package mcndao
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestMcndaoGetActiveTid(t *testing.T) {
  7. convey.Convey("GetActiveTid", t, func(ctx convey.C) {
  8. var (
  9. mids = []int64{}
  10. )
  11. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  12. res, err := d.GetActiveTid(mids)
  13. ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) {
  14. ctx.So(err, convey.ShouldBeNil)
  15. ctx.So(res, convey.ShouldNotBeNil)
  16. })
  17. })
  18. })
  19. }