Skip to content

Commit 35b3b31

Browse files
CopilotCopilot
authored andcommitted
chore: Auto-update from GitHub Actions
Run: https://github.com/cynkra/dm/actions/runs/22251999837
1 parent fbf611b commit 35b3b31

2 files changed

Lines changed: 47 additions & 13 deletions

File tree

tests/testthat/test-dplyr.R

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,19 +1022,41 @@ test_that("dm method signatures match dplyr data.frame method signatures", {
10221022

10231023
# All dplyr verbs for which we provide methods, mapped to their classes
10241024
verbs <- c(
1025-
"filter", "filter_out", "mutate", "transmute", "select", "relocate",
1026-
"rename", "distinct", "arrange", "slice", "group_by", "ungroup",
1027-
"summarise", "reframe", "count", "tally", "pull",
1028-
"left_join", "right_join", "inner_join", "full_join",
1029-
"semi_join", "anti_join", "nest_join", "cross_join"
1025+
"filter",
1026+
"filter_out",
1027+
"mutate",
1028+
"transmute",
1029+
"select",
1030+
"relocate",
1031+
"rename",
1032+
"distinct",
1033+
"arrange",
1034+
"slice",
1035+
"group_by",
1036+
"ungroup",
1037+
"summarise",
1038+
"reframe",
1039+
"count",
1040+
"tally",
1041+
"pull",
1042+
"left_join",
1043+
"right_join",
1044+
"inner_join",
1045+
"full_join",
1046+
"semi_join",
1047+
"anti_join",
1048+
"nest_join",
1049+
"cross_join"
10301050
)
10311051

10321052
for (verb in verbs) {
10331053
df_method <- tryCatch(
10341054
get(paste0(verb, ".data.frame"), envir = dplyr_ns),
10351055
error = function(e) NULL
10361056
)
1037-
if (is.null(df_method)) next
1057+
if (is.null(df_method)) {
1058+
next
1059+
}
10381060

10391061
df_args <- names(formals(df_method))
10401062

@@ -1044,15 +1066,20 @@ test_that("dm method signatures match dplyr data.frame method signatures", {
10441066
get(method_name, envir = dm_ns),
10451067
error = function(e) NULL
10461068
)
1047-
if (is.null(dm_method)) next
1069+
if (is.null(dm_method)) {
1070+
next
1071+
}
10481072

10491073
dm_args <- names(formals(dm_method))
10501074
missing_args <- setdiff(df_args, dm_args)
10511075
expect_true(
10521076
length(missing_args) == 0,
10531077
label = paste0(
1054-
method_name, " is missing args from ", verb,
1055-
".data.frame: ", paste(missing_args, collapse = ", ")
1078+
method_name,
1079+
" is missing args from ",
1080+
verb,
1081+
".data.frame: ",
1082+
paste(missing_args, collapse = ", ")
10561083
)
10571084
)
10581085
}

tests/testthat/test-tidyr.R

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ test_that("dm tidyr method signatures match tidyr data.frame method signatures",
132132
get(paste0(verb, ".data.frame"), envir = tidyr_ns),
133133
error = function(e) NULL
134134
)
135-
if (is.null(df_method)) next
135+
if (is.null(df_method)) {
136+
next
137+
}
136138

137139
df_args <- names(formals(df_method))
138140

@@ -142,15 +144,20 @@ test_that("dm tidyr method signatures match tidyr data.frame method signatures",
142144
get(method_name, envir = dm_ns),
143145
error = function(e) NULL
144146
)
145-
if (is.null(dm_method)) next
147+
if (is.null(dm_method)) {
148+
next
149+
}
146150

147151
dm_args <- names(formals(dm_method))
148152
missing_args <- setdiff(df_args, dm_args)
149153
expect_true(
150154
length(missing_args) == 0,
151155
label = paste0(
152-
method_name, " is missing args from ", verb,
153-
".data.frame: ", paste(missing_args, collapse = ", ")
156+
method_name,
157+
" is missing args from ",
158+
verb,
159+
".data.frame: ",
160+
paste(missing_args, collapse = ", ")
154161
)
155162
)
156163
}

0 commit comments

Comments
 (0)