Skip to content

Commit

Permalink
patch_bind_values default
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Dec 17, 2023
1 parent 0d818d0 commit 00cfa91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/spec-meta-bind-.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test_select_bind_one <- function(
query = TRUE,
skip_fun = NULL,
check_return_value = NULL,
patch_bind_values = identity,
patch_bind_values = NULL,
bind_error = NA,
is_repeated = FALSE,
is_premature_clear = FALSE,
Expand Down
4 changes: 4 additions & 0 deletions R/spec-meta-bind-runner.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ run_bind_tester$fun <- function(
force(is_premature_clear)
force(is_untouched)

if (is.null(patch_bind_values)) {
patch_bind_values <- identity
}

bind_values_expr <- rlang::expr({
bind_values <- !!construct_expr(bind_values)
})
Expand Down

0 comments on commit 00cfa91

Please sign in to comment.