forked from mbj/mutant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrescue.rb
38 lines (30 loc) · 1.1 KB
/
rescue.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# encoding: utf-8
Mutant::Meta::Example.add do
source 'begin; rescue ExceptionA, ExceptionB => error; true; end'
mutation 'nil'
mutation 'begin; rescue ExceptionA, ExceptionB; true; end'
mutation 'begin; rescue ExceptionA, ExceptionB => error; false; end'
mutation 'begin; rescue ExceptionA, ExceptionB => error; nil; end'
mutation 'begin; rescue ExceptionA => error; true; end'
mutation 'begin; rescue ExceptionB => error; true; end'
end
Mutant::Meta::Example.add do
source 'begin; rescue SomeException => error; true; end'
mutation 'nil'
mutation 'begin; rescue SomeException; true; end'
mutation 'begin; rescue SomeException => error; false; end'
mutation 'begin; rescue SomeException => error; nil; end'
end
Mutant::Meta::Example.add do
source 'begin; rescue => error; true end'
mutation 'nil'
mutation 'begin; rescue => error; false; end'
mutation 'begin; rescue => error; nil; end'
mutation 'begin; rescue; true; end'
end
Mutant::Meta::Example.add do
source 'begin; rescue; true end'
mutation 'nil'
mutation 'begin; rescue; false; end'
mutation 'begin; rescue; nil; end'
end