Skip to content

Commit

Permalink
Truncate mock paths to fit within R CMD check limits
Browse files Browse the repository at this point in the history
  • Loading branch information
nealrichardson committed Apr 5, 2024
1 parent 6a7005b commit c998b9a
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
library(httptest)

set_requester(
function(r) {
gsub_request(
gsub_request(
r,
# Prune the fake domain
"https\\://connect.example/",
""
),
# Truncate GUIDs to 8 characters
"([0-9a-f]{8})\\-[0-9a-f\\-]{27}",
"\\1"
)
}
)

0 comments on commit c998b9a

Please sign in to comment.