mutant 0.11.8 → 0.11.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mutant/ast/meta/optarg.rb +1 -1
- data/lib/mutant/matcher/methods.rb +2 -2
- data/lib/mutant/mutator/node/argument.rb +1 -1
- data/lib/mutant/mutator/node/arguments.rb +8 -0
- data/lib/mutant/mutator/node/block.rb +3 -1
- data/lib/mutant/mutator/node/dynamic_literal.rb +1 -1
- data/lib/mutant/mutator/node/procarg_zero.rb +1 -5
- data/lib/mutant/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cfe7ef3344fe2802cd0004827386547ff6e67adadfd7117bb51d3dadb8ed53d
|
4
|
+
data.tar.gz: f8aae5c34fa4ec0c98245641ab1773a8fe0917c56c045c0859016febdaa9e4e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5c05d42faaeec2ef7e70defece4cbf35cfb5d726aefcbcc97b0ffce260851a20d2ce1815bcf0776b14d7eb1e5aef94fde299c220997f3a0d20e4acfb71b18eb
|
7
|
+
data.tar.gz: 2c102205b6d798214da493c263e21f587ad86354a4ff8a389ac091ec2bc212c63d563e8e5aec867c21d277e3a7881e1f3981df625324e3801eb5ff23fcf7dc20
|
@@ -85,9 +85,9 @@ module Mutant
|
|
85
85
|
|
86
86
|
MESSAGE = <<~'MESSAGE'
|
87
87
|
Caught an exception while accessing a method with
|
88
|
-
#instance_method that is part of #{public,
|
88
|
+
#instance_method that is part of #{public,private,protected}_instance_methods.
|
89
89
|
|
90
|
-
This is a bug in your ruby implementation its stdlib,
|
90
|
+
This is a bug in your ruby implementation, its stdlib, your dependencies, or your code.
|
91
91
|
|
92
92
|
Mutant will ignore this method:
|
93
93
|
|
@@ -16,6 +16,7 @@ module Mutant
|
|
16
16
|
emit_argument_presence
|
17
17
|
emit_argument_mutations
|
18
18
|
emit_mlhs_expansion
|
19
|
+
emit_procarg0_removal
|
19
20
|
end
|
20
21
|
|
21
22
|
def emit_argument_presence
|
@@ -75,6 +76,13 @@ module Mutant
|
|
75
76
|
end
|
76
77
|
end
|
77
78
|
|
79
|
+
def emit_procarg0_removal
|
80
|
+
return unless children.one? && n_procarg0?((procarg0 = Mutant::Util.one(children)))
|
81
|
+
|
82
|
+
arguments = procarg0.children
|
83
|
+
emit_type(*arguments) if arguments.count > 1
|
84
|
+
end
|
85
|
+
|
78
86
|
end # Arguments
|
79
87
|
end # Node
|
80
88
|
end # Mutator
|
@@ -7,14 +7,10 @@ module Mutant
|
|
7
7
|
|
8
8
|
handle :procarg0
|
9
9
|
|
10
|
-
children :argument
|
11
|
-
|
12
10
|
private
|
13
11
|
|
14
12
|
def dispatch
|
15
|
-
|
16
|
-
|
17
|
-
emit_type(s(:arg, :"_#{name}")) unless name.to_s.start_with?('_')
|
13
|
+
children.each_index(&method(:mutate_child))
|
18
14
|
end
|
19
15
|
end # ProcargZero
|
20
16
|
end # Node
|
data/lib/mutant/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diff-lcs
|
@@ -386,7 +386,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
386
386
|
- !ruby/object:Gem::Version
|
387
387
|
version: '0'
|
388
388
|
requirements: []
|
389
|
-
rubygems_version: 3.
|
389
|
+
rubygems_version: 3.1.6
|
390
390
|
signing_key:
|
391
391
|
specification_version: 4
|
392
392
|
summary: ''
|