Skip to contents

Runs find_function_calls_in_file on all files in a folder, and combined results into a single dataframe

Usage

find_function_calls_in_folder(
  test_folder,
  foo_strings,
  filter_for_test_that = F
)

Arguments

test_folder

folder containing all tests

foo_strings

string vector of function names to search for

filter_for_test_that

whether to filter for only functions used after the call to test_that. Default FALSE.

Value

dataframe with two columns. 'foo' contains function names, location contains the location of the tests for each function (file and line number).

Examples

if (FALSE) { # \dontrun{
find_function_calls_in_folder(foo_strings = c("calculate_costs",
"calculate_QALYs",
"create_Markov_trace",
"FOO_WITH_NO_TESTS"),
test_folder = "./tests/testthat/example_project/tests/testthat")
} # }