Skip to contents

Produces one mutant per deletable statement, removing each x <- expr assignment or standalone f(...) call from the source. Surviving mutants reveal untested side effects or dead assignments.

Usage

delete_statement()

Value

A Mutator object.

Details

Function definitions (x <- function(...) { ... }) are left untouched to avoid producing structurally broken mutants.

Examples

delete_statement()
#> Mutator: <statement> → 
#> Query: [(program (binary_operator operator: _ @op     (#match? @op "^(<-|<<-|=)$")) @stmt)  (braced_expression (binary_operator operator: _ @op     (#match? @op "^(<-|<<-|=)$")) @stmt)  (program (call) @stmt)  (braced_expression (call) @stmt)]