mutant

https://github.com/mbj/mutant

Ruby

Automated code reviews via mutation testing - semantic code coverage.

Mutant::Mutator::Node::Literal::Regex#mutate_body

Mutate regexp body

body is composed of only strings. Regular expressions
with interpolation are skipped

Source | Google | Stack overflow

Edit

git clone [email protected]:mbj/mutant.git

cd mutant

open lib/mutant/mutator/node/literal/regex.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Mutant--Mutator--Node--Literal--Regex-mutate_body-for-pr


# Commit to git

git add lib/mutant/mutator/node/literal/regex.rbgit commit -m "better docs for Mutant::Mutator::Node::Literal::Regex#mutate_body"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Mutant--Mutator--Node--Literal--Regex-mutate_body-for-pr

hub pull-request


# Celebrate!