You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
720 B
35 lines
720 B
package service |
|
|
|
import ( |
|
"testing" |
|
|
|
"fmt" |
|
|
|
. "github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestService_CheckArc(t *testing.T) { |
|
Convey("TestService_CheckArc Test", t, WithService(func(s *Service) { |
|
res, err := s.CheckArc(10099763) |
|
So(res, ShouldBeTrue) |
|
So(err, ShouldBeNil) |
|
})) |
|
} |
|
|
|
func TestService_ExistArc(t *testing.T) { |
|
Convey("TestService_ExistArc Test", t, WithService(func(s *Service) { |
|
res, err := s.ExistArc(12009430) |
|
So(err, ShouldBeNil) |
|
fmt.Println(res) |
|
})) |
|
} |
|
|
|
func TestService_AddArcs(t *testing.T) { |
|
Convey("TestService_ArchiveAdd Test", t, WithService(func(s *Service) { |
|
res, err := s.AddArcs([]int64{ |
|
10099763, 10099764, |
|
}) |
|
So(err, ShouldBeNil) |
|
fmt.Println(res) |
|
})) |
|
}
|
|
|