2014-06-02 12:57:14 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'begin; rescue ExceptionA, ExceptionB => error; true; end'
|
|
|
|
|
2014-06-05 16:37:31 +00:00
|
|
|
singleton_mutations
|
2014-06-02 12:57:14 +00:00
|
|
|
mutation 'begin; rescue ExceptionA, ExceptionB; true; end'
|
2014-06-05 16:37:31 +00:00
|
|
|
mutation 'begin; rescue self, ExceptionB => error; true; end'
|
|
|
|
mutation 'begin; rescue ExceptionA, self => error; true; end'
|
2014-06-02 12:57:14 +00:00
|
|
|
mutation 'begin; rescue ExceptionA, ExceptionB => error; false; end'
|
|
|
|
mutation 'begin; rescue ExceptionA, ExceptionB => error; nil; end'
|
2014-08-16 21:13:41 +00:00
|
|
|
mutation 'begin; true; end'
|
|
|
|
|
2014-06-02 12:57:14 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'begin; rescue SomeException => error; true; end'
|
|
|
|
|
2014-06-05 16:37:31 +00:00
|
|
|
singleton_mutations
|
2014-06-02 12:57:14 +00:00
|
|
|
mutation 'begin; rescue SomeException; true; end'
|
|
|
|
mutation 'begin; rescue SomeException => error; false; end'
|
|
|
|
mutation 'begin; rescue SomeException => error; nil; end'
|
2014-06-05 16:37:31 +00:00
|
|
|
mutation 'begin; rescue self => error; true; end'
|
2014-08-16 21:13:41 +00:00
|
|
|
mutation 'begin; true; end'
|
2014-06-02 12:57:14 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'begin; rescue => error; true end'
|
|
|
|
|
2014-06-05 16:37:31 +00:00
|
|
|
singleton_mutations
|
2014-06-02 12:57:14 +00:00
|
|
|
mutation 'begin; rescue => error; false; end'
|
|
|
|
mutation 'begin; rescue => error; nil; end'
|
|
|
|
mutation 'begin; rescue; true; end'
|
2014-08-16 21:13:41 +00:00
|
|
|
mutation 'begin; true; end'
|
2014-06-02 12:57:14 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'begin; rescue; true end'
|
|
|
|
|
2014-06-05 16:37:31 +00:00
|
|
|
singleton_mutations
|
2014-06-02 12:57:14 +00:00
|
|
|
mutation 'begin; rescue; false; end'
|
|
|
|
mutation 'begin; rescue; nil; end'
|
2014-08-16 21:13:41 +00:00
|
|
|
mutation 'begin; true end'
|
2014-06-02 12:57:14 +00:00
|
|
|
end
|