Skip to content

Commit

Permalink
Merge pull request #1162 from r-lib/fix-roxy-test-comments
Browse files Browse the repository at this point in the history
Update roxygen test comments
  • Loading branch information
lorenzwalthert authored Dec 3, 2023
2 parents d6fee24 + 1c58646 commit cfcdb48
Show file tree
Hide file tree
Showing 30 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/Rscript
# execute from package TLD: ./tests/dev/gen_roxygen_tests.R
# execute from: ./tests/dev/generate_roxygen_tests.R
roxygen_stub <- "roxygen-examples-complete"
all_examples <- list.files(file.path("tests", "testthat", roxygen_stub))
unique_tests <- unique(sub("-.*", "", all_examples))
Expand All @@ -15,7 +15,7 @@ for (test in unique_tests) {
condition <- condition_map[[test]]
if (is.null(condition)) condition <- c("warning", "NA")
writeLines(con = out_file, c(
"# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.",
"# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.",
"",
sprintf('test_that("analogous to test-%s: %s", {', roxygen_stub, test),
sprintf(
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-01.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 01", {
expect_warning(test_collection("roxygen-examples-complete", "^01-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-02.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 02", {
expect_warning(test_collection("roxygen-examples-complete", "^02-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-03.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 03", {
expect_warning(test_collection("roxygen-examples-complete", "^03-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-04.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 04", {
expect_warning(test_collection("roxygen-examples-complete", "^04-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-05.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 05", {
expect_warning(test_collection("roxygen-examples-complete", "^05-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-06.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 06", {
expect_warning(test_collection("roxygen-examples-complete", "^06-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-07.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 07", {
expect_warning(test_collection("roxygen-examples-complete", "^07-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-08.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 08", {
expect_warning(test_collection("roxygen-examples-complete", "^08-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-09.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 09", {
expect_warning(test_collection("roxygen-examples-complete", "^09-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-10.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 10", {
expect_warning(test_collection("roxygen-examples-complete", "^10-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-11.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 11", {
expect_warning(test_collection("roxygen-examples-complete", "^11-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-12.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 12", {
expect_warning(test_collection("roxygen-examples-complete", "^12-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-13.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 13", {
expect_warning(test_collection("roxygen-examples-complete", "^13-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-14.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 14", {
expect_warning(test_collection("roxygen-examples-complete", "^14-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-15.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 15", {
expect_warning(test_collection("roxygen-examples-complete", "^15-", transformer = style_text, scope = "spaces"), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-16.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 16", {
expect_warning(test_collection("roxygen-examples-complete", "^16-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-17.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 17", {
expect_warning(test_collection("roxygen-examples-complete", "^17-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-18.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 18", {
expect_warning(test_collection("roxygen-examples-complete", "^18-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-19.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 19", {
expect_warning(test_collection("roxygen-examples-complete", "^19-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-20.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 20", {
expect_warning(test_collection("roxygen-examples-complete", "^20-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-21.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 21", {
expect_warning(test_collection("roxygen-examples-complete", "^21-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-22.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 22", {
expect_warning(test_collection("roxygen-examples-complete", "^22-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-23.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 23", {
expect_error(test_collection("roxygen-examples-complete", "^23-", transformer = style_text), "issues/1242")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-24.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 24", {
expect_warning(test_collection("roxygen-examples-complete", "^24-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-25.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 25", {
expect_warning(test_collection("roxygen-examples-complete", "^25-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-26.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 26", {
expect_warning(test_collection("roxygen-examples-complete", "^26-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-27.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 27", {
expect_warning(test_collection("roxygen-examples-complete", "^27-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-28.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 28", {
expect_warning(test_collection("roxygen-examples-complete", "^28-", transformer = style_text), NA)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-roxygen-examples-complete-29.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NB: DO NOT EDIT. Auto-generated by .dev/gen_roxygen_tests.R.
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 29", {
expect_warning(test_collection("roxygen-examples-complete", "^29-", transformer = style_text), NA)
Expand Down

0 comments on commit cfcdb48

Please sign in to comment.