Skip to content
This repository was archived by the owner on Aug 23, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/mutest/mutator/node/send.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class Send < self
reverse_map: %i[map each],
reverse_merge: %i[merge],
sample: %i[first last],
grep: %i[grep_v],
grep_v: %i[grep],
send: %i[public_send __send__],
shift: %i[first],
to_a: %i[to_ary to_set],
Expand Down
26 changes: 26 additions & 0 deletions meta/send.rb
Original file line number Diff line number Diff line change
Expand Up @@ -784,3 +784,29 @@
mutation 'a === self'
mutation 'a.kind_of?(b)'
end

Mutest::Meta::Example.add :send do
source 'a.grep(b)'

singleton_mutations
mutation 'a'
mutation 'b'
mutation 'self.grep(b)'
mutation 'a.grep'
mutation 'a.grep(nil)'
mutation 'a.grep(self)'
mutation 'a.grep_v(b)'
end

Mutest::Meta::Example.add :send do
source 'a.grep_v(b)'

singleton_mutations
mutation 'a'
mutation 'b'
mutation 'self.grep_v(b)'
mutation 'a.grep_v'
mutation 'a.grep_v(nil)'
mutation 'a.grep_v(self)'
mutation 'a.grep(b)'
end