archive_test.go 720 B

1234567891011121314151617181920212223242526272829303132333435
  1. package service
  2. import (
  3. "testing"
  4. "fmt"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestService_CheckArc(t *testing.T) {
  8. Convey("TestService_CheckArc Test", t, WithService(func(s *Service) {
  9. res, err := s.CheckArc(10099763)
  10. So(res, ShouldBeTrue)
  11. So(err, ShouldBeNil)
  12. }))
  13. }
  14. func TestService_ExistArc(t *testing.T) {
  15. Convey("TestService_ExistArc Test", t, WithService(func(s *Service) {
  16. res, err := s.ExistArc(12009430)
  17. So(err, ShouldBeNil)
  18. fmt.Println(res)
  19. }))
  20. }
  21. func TestService_AddArcs(t *testing.T) {
  22. Convey("TestService_ArchiveAdd Test", t, WithService(func(s *Service) {
  23. res, err := s.AddArcs([]int64{
  24. 10099763, 10099764,
  25. })
  26. So(err, ShouldBeNil)
  27. fmt.Println(res)
  28. }))
  29. }