up_play_info_test.go 1009 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package upcrm
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestUpcrmQueryPlayInfo(t *testing.T) {
  7. convey.Convey("QueryPlayInfo", t, func(ctx convey.C) {
  8. var (
  9. mid = int64(0)
  10. busiType = []int{}
  11. )
  12. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  13. result, err := d.QueryPlayInfo(mid, busiType)
  14. ctx.Convey("Then err should be nil.result should not be nil.", func(ctx convey.C) {
  15. ctx.So(err, convey.ShouldBeNil)
  16. ctx.So(result, convey.ShouldNotBeNil)
  17. })
  18. })
  19. })
  20. }
  21. func TestUpcrmQueryPlayInfoBatch(t *testing.T) {
  22. convey.Convey("QueryPlayInfoBatch", t, func(ctx convey.C) {
  23. var (
  24. mid = []int64{}
  25. busiType = int(0)
  26. )
  27. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  28. result, err := d.QueryPlayInfoBatch(mid, busiType)
  29. ctx.Convey("Then err should be nil.result should not be nil.", func(ctx convey.C) {
  30. ctx.So(err, convey.ShouldBeNil)
  31. ctx.So(result, convey.ShouldNotBeNil)
  32. })
  33. })
  34. })
  35. }