online_test.go 514 B

1234567891011121314151617181920212223
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestService_OnlineList(t *testing.T) {
  8. Convey("online list", t, WithService(func(s *Service) {
  9. data, err := s.OnlineList(context.Background())
  10. So(err, ShouldBeNil)
  11. Printf("%v", data)
  12. }))
  13. }
  14. func TestService_OnlineArchiveCount(t *testing.T) {
  15. Convey("test online OnlineArchiveCount", t, WithService(func(s *Service) {
  16. res := s.OnlineArchiveCount(context.Background())
  17. So(res, ShouldNotBeNil)
  18. }))
  19. }