View source: R/mutator-presets.R
| string_literals | R Documentation |
Returns a ready-made list of string_empty() and string_fill() mutators
covering both directions: collapsing non-empty strings to "" and filling
empty strings with a placeholder.
string_literals()
Use on any file where string values are passed to downstream logic or returned to callers. Surviving mutants reveal tests that only check type or length — asserting the exact string content kills them.
A list of mutators.
vignette("mutators", package = "muttest") for the full mutator table.
vignette("interpreting-results", package = "muttest") for how to
diagnose survivors and fix the underlying test weakness.
string_literals()
## Not run:
plan <- muttest_plan(
source_files = "R/labels.R",
mutators = string_literals()
)
muttest(plan, "tests/testthat")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.