mutant 0.3.0.beta12 → 0.3.0.beta13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/flay.yml +1 -1
- data/lib/mutant/mutator/node/generic.rb +3 -4
- data/lib/mutant/mutator/node/literal/array.rb +0 -1
- data/mutant.gemspec +1 -1
- data/spec/unit/mutant/mutator/node/literal/array_spec.rb +0 -3
- metadata +2 -4
- data/spec/unit/mutant/mutator/node/literal/empty_array_spec.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5100a60ae10ea74c7d5429d4c6f8ab4a8eb6d324
|
4
|
+
data.tar.gz: d8c915c2bd55f043c2e6e7e39d41dfb67d0b9981
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e90198db8556ad4ee0f3b1e882f3a61b7cee31ecfd1b4c6357dccba3984522775dc7789a9d4d629f26a63550d5748676c19cbaf870d2756ee5cd41b65bf25912
|
7
|
+
data.tar.gz: 91bcd04508b4924b334d09476be2f2ea4717ea817bea6cc39f3fb255fb072299eb7cfbffc3f62b0d73210b946ec60f3824e88c556b08e8a0d06c59db57fcc544
|
data/config/flay.yml
CHANGED
@@ -27,10 +27,9 @@ module Mutant
|
|
27
27
|
# @api private
|
28
28
|
#
|
29
29
|
def dispatch
|
30
|
-
children.
|
31
|
-
|
32
|
-
|
33
|
-
end
|
30
|
+
children.each_with_index do |child, index|
|
31
|
+
next unless child.kind_of?(Parser::AST::Node)
|
32
|
+
mutate_child(index)
|
34
33
|
end
|
35
34
|
end
|
36
35
|
|
data/mutant.gemspec
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.3.0.
|
4
|
+
version: 0.3.0.beta13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -323,7 +323,6 @@ files:
|
|
323
323
|
- spec/unit/mutant/mutator/node/if/mutation_spec.rb
|
324
324
|
- spec/unit/mutant/mutator/node/literal/array_spec.rb
|
325
325
|
- spec/unit/mutant/mutator/node/literal/boolean/mutation_spec.rb
|
326
|
-
- spec/unit/mutant/mutator/node/literal/empty_array_spec.rb
|
327
326
|
- spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
|
328
327
|
- spec/unit/mutant/mutator/node/literal/float_spec.rb
|
329
328
|
- spec/unit/mutant/mutator/node/literal/hash_spec.rb
|
@@ -431,7 +430,6 @@ test_files:
|
|
431
430
|
- spec/unit/mutant/mutator/node/if/mutation_spec.rb
|
432
431
|
- spec/unit/mutant/mutator/node/literal/array_spec.rb
|
433
432
|
- spec/unit/mutant/mutator/node/literal/boolean/mutation_spec.rb
|
434
|
-
- spec/unit/mutant/mutator/node/literal/empty_array_spec.rb
|
435
433
|
- spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
|
436
434
|
- spec/unit/mutant/mutator/node/literal/float_spec.rb
|
437
435
|
- spec/unit/mutant/mutator/node/literal/hash_spec.rb
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Mutant::Mutator::Node::Literal, 'empty array' do
|
4
|
-
let(:source) { '[]' }
|
5
|
-
|
6
|
-
let(:mutations) do
|
7
|
-
mutations = []
|
8
|
-
|
9
|
-
# Literal replaced with nil
|
10
|
-
mutations << 'nil'
|
11
|
-
|
12
|
-
# Extra element
|
13
|
-
mutations << '[nil]'
|
14
|
-
end
|
15
|
-
|
16
|
-
it_should_behave_like 'a mutator'
|
17
|
-
end
|