View source: R/mutator-presets.R
| comparison_operators | R Documentation |
Returns a ready-made list of operator() mutators covering direction swaps
(</>, <=/>=, ==/!=) and boundary shifts (</<=, >/>=).
comparison_operators()
Use on any file with threshold logic, range checks, or filter conditions. A surviving mutant from this preset means the exact boundary value implied by the operator was never passed to the function — adding a test at that boundary value kills it.
A list of operator() mutators.
vignette("mutators", package = "muttest") for the full operator table
and a worked example showing the missing boundary value pattern.
vignette("interpreting-results", package = "muttest") for how to
diagnose survivors and fix the underlying test weakness.
comparison_operators()
## Not run:
plan <- muttest_plan(
source_files = "R/shipping.R",
mutators = comparison_operators()
)
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.