mutant
https://github.com/mbj/mutant
Ruby
Automated code reviews via mutation testing - semantic code coverage.
Mutant::Mutator::Node::Send#emit_dig_mutation
Emit mutation for `#dig` - Mutates `foo.dig(a, b)` to `foo.fetch(a).dig(b)` - Mutates `foo.dig(a)` to `foo.fetch(a)`
Edit
git clone [email protected]:mbj/mutant.git
cd mutant
open lib/mutant/mutator/node/send.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Mutant--Mutator--Node--Send-emit_dig_mutation-for-pr
# Commit to gitgit add lib/mutant/mutator/node/send.rbgit commit -m "better docs for Mutant::Mutator::Node::Send#emit_dig_mutation"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Mutant--Mutator--Node--Send-emit_dig_mutation-for-pr
hub pull-request
# Celebrate!