videoup_test.go 460 B

123456789101112131415161718192021222324
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestTypeInfo(t *testing.T) {
  8. Convey("", t, func() {
  9. types, err := testDao.TypeInfo(context.TODO())
  10. So(types, ShouldNotBeEmpty)
  11. So(err, ShouldBeNil)
  12. })
  13. }
  14. func TestArchiveVideos(t *testing.T) {
  15. Convey("", t, func() {
  16. avm, err := testDao.ArchiveVideos(context.TODO(), []int64{10110320, 123, 3})
  17. So(avm, ShouldNotBeEmpty)
  18. So(err, ShouldBeNil)
  19. })
  20. }