2014-06-02 08:57:14 -04:00
|
|
|
Mutant::Meta::Example.add do
|
2014-07-24 15:09:29 -04:00
|
|
|
source 'foo { a; b }'
|
2014-06-02 08:57:14 -04:00
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo { a }'
|
|
|
|
mutation 'foo { b }'
|
|
|
|
mutation 'foo {}'
|
|
|
|
mutation 'foo { raise }'
|
|
|
|
mutation 'foo { a; nil }'
|
2014-06-05 12:37:31 -04:00
|
|
|
mutation 'foo { a; self }'
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo { nil; b }'
|
2014-06-05 12:37:31 -04:00
|
|
|
mutation 'foo { self; b }'
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo'
|
2014-07-24 15:09:29 -04:00
|
|
|
mutation 'a; b'
|
2014-06-02 08:57:14 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'foo { |a, b| }'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo'
|
|
|
|
mutation 'foo { |a, b| raise }'
|
2015-08-13 22:02:04 -04:00
|
|
|
mutation 'foo { |a, _b| }'
|
|
|
|
mutation 'foo { |_a, b| }'
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo { |a| }'
|
|
|
|
mutation 'foo { |b| }'
|
|
|
|
mutation 'foo { || }'
|
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'foo { |(a, b), c| }'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo { || }'
|
|
|
|
mutation 'foo { |a, b, c| }'
|
|
|
|
mutation 'foo { |(a, b), c| raise }'
|
|
|
|
mutation 'foo { |(a), c| }'
|
|
|
|
mutation 'foo { |(b), c| }'
|
|
|
|
mutation 'foo { |(a, b)| }'
|
|
|
|
mutation 'foo { |c| }'
|
2015-08-13 22:02:04 -04:00
|
|
|
mutation 'foo { |(_a, b), c| }'
|
|
|
|
mutation 'foo { |(a, _b), c| }'
|
|
|
|
mutation 'foo { |(a, b), _c| }'
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo'
|
|
|
|
end
|
|
|
|
|
2014-07-18 19:50:48 -04:00
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'foo(a, b) {}'
|
|
|
|
|
|
|
|
singleton_mutations
|
|
|
|
mutation 'foo(a, nil) {}'
|
|
|
|
mutation 'foo(nil, b) {}'
|
|
|
|
mutation 'foo(self, b) {}'
|
|
|
|
mutation 'foo(a, self) {}'
|
|
|
|
mutation 'foo(a, b)'
|
|
|
|
mutation 'foo(a, b) { raise }'
|
|
|
|
mutation 'foo(a) {}'
|
|
|
|
mutation 'foo(b) {}'
|
|
|
|
mutation 'foo {}'
|
|
|
|
end
|
|
|
|
|
2014-06-02 08:57:14 -04:00
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'foo { |(a)| }'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo { || }'
|
|
|
|
mutation 'foo { |a| }'
|
|
|
|
mutation 'foo { |(a)| raise }'
|
2015-08-13 22:02:04 -04:00
|
|
|
mutation 'foo { |(_a)| }'
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo'
|
|
|
|
end
|
2015-08-14 01:45:02 -04:00
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
2015-09-11 19:06:07 -04:00
|
|
|
source 'foo { bar(nil) }'
|
2015-08-14 01:45:02 -04:00
|
|
|
|
|
|
|
singleton_mutations
|
2015-09-11 19:06:07 -04:00
|
|
|
mutation 'foo'
|
|
|
|
mutation 'foo { bar }'
|
|
|
|
mutation 'foo { nil }'
|
|
|
|
mutation 'foo {}'
|
|
|
|
mutation 'foo { self }'
|
|
|
|
mutation 'foo { raise }'
|
|
|
|
mutation 'foo.bar(nil)'
|
2015-08-14 01:45:02 -04:00
|
|
|
mutation 'bar(nil)'
|
2015-09-11 19:06:07 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'foo { self << true }'
|
|
|
|
|
|
|
|
singleton_mutations
|
|
|
|
mutation 'foo { self << false }'
|
|
|
|
mutation 'foo { self << nil }'
|
|
|
|
mutation 'foo { nil << true }'
|
|
|
|
mutation 'foo { nil }'
|
|
|
|
mutation 'foo { self }'
|
|
|
|
mutation 'foo { true }'
|
|
|
|
mutation 'self << true'
|
|
|
|
mutation 'foo << true'
|
|
|
|
mutation 'foo { raise }'
|
|
|
|
mutation 'foo { }'
|
|
|
|
mutation 'foo'
|
2015-08-14 01:45:02 -04:00
|
|
|
end
|