Daniel Gollahon
Daniel Gollahon
We currently upgrade `^` and `$` to their full-string counterparts, but we don't seem to add anchors in general. Note: we may get a "loop" of mutations by adding these...
Simply forcing the use of `Integer` is actually kind of misleading/dangerous. Our goal with `mutest` should be to help people write correct software that is free of bugs but, while...
see: https://github.com/mbj/mutant/issues/461
Replace `a.__send__(method)`, `a.send(method)`, and `a.public_send(method)` with `a.method` where `method` is a string or a symbol. I think we could actually statically replace `a.public_send(:b)` with `a.b` (might be an interesting `rubocop`...
```ruby def foo(bar = []) super end ``` gets mutated to ```ruby def foo(_bar = []) super end ``` which is frustrating and misleading.
We have this for regular splats but not keyword splats.
This is actually a bit tricky because a naive approach involves generating invalid ASTs which is not desirable (but sometimes a necessary evil). We may need to spend a bit...
I thought we already did this but I discovered that was not quite the case yesterday (https://github.com/backus/mutest/pull/59#discussion_r106802488).
Reference implementation I need to port over: https://github.com/mbj/mutant/pull/655 (I think we should emit both fetch style mutations though so we present both options without enforcing one over the other though)