Running 'spelling.R' [0s]
  Running 'testthat.R' [67s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(GitStats)
  > 
  > test_check("GitStats")
  
  .....
  [ FAIL 10 | WARN 0 | SKIP 71 | PASS 594 ]
  
  ══ Skipped tests (71) ══════════════════════════════════════════════════════════
  • On CRAN (68): 'test-01-get_repos-GitHub.R:4:3',
    'test-01-get_repos-GitHub.R:374:3', 'test-01-get_repos-GitHub.R:402:3',
    'test-01-get_repos-GitHub.R:429:3', 'test-01-get_repos-GitHub.R:455:3',
    'test-01-get_repos-GitHub.R:473:3', 'test-01-get_repos-GitHub.R:597:3',
    'test-01-get_repos-GitHub.R:650:3', 'test-01-get_repos-GitHub.R:719:3',
    'test-01-get_repos-GitLab.R:4:3', 'test-01-get_repos-GitLab.R:128:3',
    'test-01-get_repos-GitLab.R:144:3', 'test-01-get_repos-GitLab.R:252:3',
    'test-02-get_commits-GitHub.R:4:3', 'test-02-get_commits-GitHub.R:15:3',
    'test-02-get_commits-GitHub.R:209:3', 'test-02-get_commits-GitStats.R:70:3',
    'test-03-get_files_structure-GitHub.R:4:3',
    'test-03-get_files_structure-GitHub.R:229:3',
    'test-03-get_files_structure-GitHub.R:276:3',
    'test-03-get_files_structure-GitLab.R:4:3',
    'test-04-get_files_content-GitHub.R:4:3',
    'test-04-get_files_content-GitHub.R:101:3',
    'test-04-get_files_content-GitLab.R:4:3',
    'test-04-get_files_content-GitLab.R:188:3', 'test-05-get_files.R:89:3',
    'test-get_commits_stats.R:29:3', 'test-get_release-GitHub.R:4:3',
    'test-get_release-GitHub.R:123:3', 'test-get_release-GitLab.R:4:3',
    'test-get_release-GitLab.R:87:3', 'test-get_urls_repos-GitHub.R:62:3',
    'test-get_urls_repos-GitHub.R:91:3', 'test-get_urls_repos-GitHub.R:115:3',
    'test-get_usage_R_package.R:98:3', 'test-get_user-GitHub.R:4:3',
    'test-get_user-GitLab.R:4:3', 'test-helpers.R:2:3', 'test-helpers.R:12:3',
    'test-helpers.R:48:3', 'test-helpers.R:56:3', 'test-helpers.R:62:3',
    'test-helpers.R:80:3', 'test-helpers.R:100:3', 'test-helpers.R:126:3',
    'test-helpers.R:157:3', 'test-helpers.R:167:3', 'test-helpers.R:177:3',
    'test-helpers.R:191:3', 'test-set_host.R:4:3', 'test-set_host.R:21:3',
    'test-set_host.R:31:3', 'test-set_host.R:43:3', 'test-set_host.R:59:3',
    'test-set_host.R:75:3', 'test-set_host.R:90:3', 'test-set_host.R:111:3',
    'test-set_host.R:128:3', 'test-set_host.R:161:3', 'test-set_host.R:174:3',
    'test-z-GitStats.R:8:3', 'test-z-GitStats.R:13:3', 'test-z-GitStats.R:17:3',
    'test-z-GitStats.R:35:3', 'test-z-GitStats.R:41:3', 'test-z-GitStats.R:89:3',
    'test-z-GitStats.R:112:3', 'test-z-GitStats.R:127:3'
  • Sys.getenv("GITHUB_PAT") == "" is TRUE (3): 'test-00-api-requests.R:29:3',
    'test-00-api-requests.R:41:3', 'test-00-api-requests.R:53:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-01-get_repos-GitLab.R:158:3'): `map_search_into_repos()` works ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map(repos_ids, function(repo_id) {
      content <- self$response(endpoint = paste0(private$endpoints[["projects"]], 
          repo_id))
  }, .progress = if (progress) {
      "Parsing search response into repositories output..."
  } else {
      FALSE
  })`: i In index: 1.
  Caused by error in `httr2::req_perform()`:
  ! Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached [gitlab.com]: SSL/TLS connection timeout
  ── Error ('test-01-get_repos-GitLab.R:282:3'): `tailor_repos_response()` tailors precisely `repos_list` ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `gl_repos_by_code_tailored[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. └─GitStats:::expect_list_contains_only(...) at test-01-get_repos-GitLab.R:282:3
   2.   └─testthat::quasi_label(rlang::enquo(object), arg = "object") at D:\RCompile\CRANpkg\local\4.5\GitStats.Rcheck\tests\testthat\helper.R:69:3
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-01-get_repos-GitLab.R:308:3'): `tailor_repos_response()` tailors precisely to minimal `repos_list` ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `gl_repos_by_code_tailored[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. └─GitStats:::expect_list_contains_only(...) at test-01-get_repos-GitLab.R:308:3
   2.   └─testthat::quasi_label(rlang::enquo(object), arg = "object") at D:\RCompile\CRANpkg\local\4.5\GitStats.Rcheck\tests\testthat\helper.R:69:3
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Failure ('test-01-get_repos-GitLab.R:323:3'): REST client prepares table from GitLab repositories response ──
  Names of `repos_object` ('') don't match 'repo_id', 'repo_name', 'default_branch', 'stars', 'forks', 'created_at', 'last_activity_at', 'languages', 'issues_open', 'issues_closed', 'organization', 'repo_url'
  Backtrace:
      ▆
   1. └─GitStats:::expect_repos_table(gl_repos_by_code_table) at test-01-get_repos-GitLab.R:323:3
   2.   └─testthat::expect_named(repos_object, repo_cols) at D:\RCompile\CRANpkg\local\4.5\GitStats.Rcheck\tests\testthat\helper-expect-tables.R:35:3
  ── Failure ('test-01-get_repos-GitLab.R:323:3'): REST client prepares table from GitLab repositories response ──
  nrow(repos_object) is not strictly more than 0. Difference: 0
  Backtrace:
      ▆
   1. └─GitStats:::expect_repos_table(gl_repos_by_code_table) at test-01-get_repos-GitLab.R:323:3
   2.   └─testthat::expect_gt(nrow(repos_object), 0) at D:\RCompile\CRANpkg\local\4.5\GitStats.Rcheck\tests\testthat\helper-expect-tables.R:36:3
  ── Failure ('test-01-get_repos-GitLab.R:341:3'): `get_repos_issues()` adds issues to repos table ──
  length(gl_repos_by_code_table$issues_open) is not strictly more than 0. Difference: 0
  ── Failure ('test-01-get_repos-GitLab.R:345:3'): `get_repos_issues()` adds issues to repos table ──
  length(gl_repos_by_code_table$issues_closed) is not strictly more than 0. Difference: 0
  ── Error ('test-02-get_commits-GitLab.R:146:3'): get_commits_from_orgs works ───
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map(private$orgs, function(org) {
      commits_table_org <- NULL
      if (!private$scan_all && verbose) {
          show_message(host = private$host_name, engine = "rest", 
              scope = utils::URLdecode(org), information = "Pulling commits")
      }
      repos_names <- private$get_repos_names(org = org)
      commits_table_org <- rest_engine$get_commits_from_repos(repos_names = paste0(org, 
          "%2f", repos_names), since = since, until = until, progress = progress) %>% 
          rest_engine$tailor_commits_info(org = org) %>% rest_engine$prepare_commits_table() %>% 
          rest_engine$get_commits_authors_handles_and_names(verbose = verbose, 
              progress = progress)
      return(commits_table_org)
  }, .progress = if (private$scan_all && progress) {
      "[GitHost:GitLab] Pulling commits..."
  } else {
      FALSE
  })`: i In index: 1.
  Caused by error in `httr2::req_perform()`:
  ! Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached [gitlab.com]: SSL/TLS connection timeout
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(...) at test-02-get_commits-GitLab.R:146:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-02-get_commits-GitLab.R:179:3'): get_commits_from_repos works ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map(owners, function(owner) {
      response <- self$gql_response(gql_query = user_or_org_query, 
          vars = list(username = owner, grouppath = owner))
      if (!all(purrr::map_lgl(response$data, is.null))) {
          type <- names(purrr::discard(response$data, is.null))
          if (type == "group") {
              type <- "organization"
          }
          attr(owner, "type") <- type
      }
      else {
          attr(owner, "type") <- "not found"
      }
      return(owner)
  })`: i In index: 1.
  Caused by error in `httr2::req_perform()`:
  ! Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached [gitlab.com]: SSL/TLS connection timeout
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(...) at test-02-get_commits-GitLab.R:179:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-get_release-GitLab.R:108:3'): `get_release_logs_from_repos()` works ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map(owners, function(owner) {
      response <- self$gql_response(gql_query = user_or_org_query, 
          vars = list(username = owner, grouppath = owner))
      if (!all(purrr::map_lgl(response$data, is.null))) {
          type <- names(purrr::discard(response$data, is.null))
          if (type == "group") {
              type <- "organization"
          }
          attr(owner, "type") <- type
      }
      else {
          attr(owner, "type") <- "not found"
      }
      return(owner)
  })`: i In index: 1.
  Caused by error in `httr2::req_perform()`:
  ! Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached [gitlab.com]: SSL/TLS connection timeout
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(...) at test-get_release-GitLab.R:108:3
   2.   └─rlang::cnd_signal(state$error)
  
  [ FAIL 10 | WARN 0 | SKIP 71 | PASS 594 ]
  Error: Test failures
  Execution halted