bigdata_test.go 841 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaodanmakuURI(t *testing.T) {
  8. convey.Convey("danmakuURI", t, func(ctx convey.C) {
  9. var (
  10. oid = int64(0)
  11. )
  12. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  13. p1 := testDao.danmakuURI(oid)
  14. ctx.Convey("Then p1 should not be nil.", func(ctx convey.C) {
  15. ctx.So(p1, convey.ShouldNotBeNil)
  16. })
  17. })
  18. })
  19. }
  20. func TestDaoRecFlag(t *testing.T) {
  21. convey.Convey("RecFlag", t, func(ctx convey.C) {
  22. var (
  23. c = context.Background()
  24. mid = int64(0)
  25. aid = int64(0)
  26. oid = int64(0)
  27. limit = int64(0)
  28. ps = int64(0)
  29. pe = int64(0)
  30. plat = int32(0)
  31. )
  32. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  33. testDao.RecFlag(c, mid, aid, oid, limit, ps, pe, plat)
  34. })
  35. })
  36. }