history_test.go 646 B

1234567891011121314151617181920212223242526272829
  1. package history
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestService_List(t *testing.T) {
  8. Convey("list", t, WithService(func(s *Service) {
  9. _, err := s.List(context.TODO(), 27515256, 111, 1, 20, "0", 0)
  10. So(err, ShouldBeNil)
  11. }))
  12. }
  13. func TestService_Live(t *testing.T) {
  14. Convey("live", t, WithService(func(s *Service) {
  15. _, err := s.Live(context.TODO(), []int64{27515256})
  16. So(err, ShouldBeNil)
  17. }))
  18. }
  19. func TestService_LiveList(t *testing.T) {
  20. Convey("live", t, WithService(func(s *Service) {
  21. _, err := s.LiveList(context.TODO(), 27515256, 111, 1, 20, "0", 0)
  22. So(err, ShouldBeNil)
  23. }))
  24. }