archive_test.go 714 B

123456789101112131415161718192021222324252627
  1. package archive
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestArchiveArcsAids(t *testing.T) {
  8. convey.Convey("ArcsAids", t, func(ctx convey.C) {
  9. var (
  10. c = context.Background()
  11. ids = []int64{10110188}
  12. )
  13. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  14. aids, ptimes, copyrights, aptm, err := d.ArcsAids(c, ids)
  15. ctx.Convey("Then err should be nil.aids,ptimes,copyrights,aptm should not be nil.", func(ctx convey.C) {
  16. ctx.So(err, convey.ShouldBeNil)
  17. ctx.So(aptm, convey.ShouldNotBeNil)
  18. ctx.So(copyrights, convey.ShouldNotBeNil)
  19. ctx.So(ptimes, convey.ShouldNotBeNil)
  20. ctx.So(aids, convey.ShouldNotBeNil)
  21. })
  22. })
  23. })
  24. }