videoup_test.go 650 B

12345678910111213141516171819202122232425262728293031
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoarchiveURI(t *testing.T) {
  8. convey.Convey("archiveURI", t, func(ctx convey.C) {
  9. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  10. p1 := testDao.archiveURI()
  11. ctx.Convey("Then p1 should not be nil.", func(ctx convey.C) {
  12. ctx.So(p1, convey.ShouldNotBeNil)
  13. })
  14. })
  15. })
  16. }
  17. func TestDaoVideos(t *testing.T) {
  18. convey.Convey("Videos", t, func(ctx convey.C) {
  19. var (
  20. c = context.Background()
  21. aid = int64(0)
  22. )
  23. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  24. testDao.Videos(c, aid)
  25. })
  26. })
  27. }