mutant 0.8.4 → 0.8.5
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/Changelog.md +5 -0
- data/circle.yml +3 -0
- data/config/flay.yml +1 -1
- data/lib/mutant/mutator/node/block.rb +1 -2
- data/lib/mutant/version.rb +1 -1
- data/meta/block.rb +25 -9
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dd5fae5bb56ceed6c9afc7a06e760f07a4cfefb
|
4
|
+
data.tar.gz: 5379381863e779bff921ea7f51d0ca55832d4bb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 400a2e5a58ee453774f591ca6a4aa81904b07c18203c5cde21cef2bc0f8aae702fb0332dc62e40375476e9aebde7ba273d47716ef2c02a711f6931da7146966b
|
7
|
+
data.tar.gz: 042ef5b2171ef8a9fc059bb81370a7e6d494f95c826f7fa64e7ce347b6071ad9e45f711832fb0c81c21d37e20e5384456c00a6a4eff0947e392fe616e8f04d22
|
data/Changelog.md
CHANGED
data/circle.yml
CHANGED
data/config/flay.yml
CHANGED
@@ -49,9 +49,8 @@ module Mutant
|
|
49
49
|
return unless n_send?(body)
|
50
50
|
|
51
51
|
body_meta = AST::Meta::Send.new(body)
|
52
|
-
send_meta = AST::Meta::Send.new(send)
|
53
52
|
|
54
|
-
emit(s(:send,
|
53
|
+
emit(s(:send, send, body_meta.selector, *body_meta.arguments))
|
55
54
|
end
|
56
55
|
|
57
56
|
end # Block
|
data/lib/mutant/version.rb
CHANGED
data/meta/block.rb
CHANGED
@@ -71,16 +71,32 @@ Mutant::Meta::Example.add do
|
|
71
71
|
end
|
72
72
|
|
73
73
|
Mutant::Meta::Example.add do
|
74
|
-
source '
|
74
|
+
source 'foo { bar(nil) }'
|
75
75
|
|
76
76
|
singleton_mutations
|
77
|
-
mutation '
|
78
|
-
mutation 'foo { bar
|
79
|
-
mutation '
|
80
|
-
mutation '
|
81
|
-
mutation '
|
82
|
-
mutation '
|
83
|
-
mutation '
|
77
|
+
mutation 'foo'
|
78
|
+
mutation 'foo { bar }'
|
79
|
+
mutation 'foo { nil }'
|
80
|
+
mutation 'foo {}'
|
81
|
+
mutation 'foo { self }'
|
82
|
+
mutation 'foo { raise }'
|
83
|
+
mutation 'foo.bar(nil)'
|
84
84
|
mutation 'bar(nil)'
|
85
|
-
|
85
|
+
end
|
86
|
+
|
87
|
+
Mutant::Meta::Example.add do
|
88
|
+
source 'foo { self << true }'
|
89
|
+
|
90
|
+
singleton_mutations
|
91
|
+
mutation 'foo { self << false }'
|
92
|
+
mutation 'foo { self << nil }'
|
93
|
+
mutation 'foo { nil << true }'
|
94
|
+
mutation 'foo { nil }'
|
95
|
+
mutation 'foo { self }'
|
96
|
+
mutation 'foo { true }'
|
97
|
+
mutation 'self << true'
|
98
|
+
mutation 'foo << true'
|
99
|
+
mutation 'foo { raise }'
|
100
|
+
mutation 'foo { }'
|
101
|
+
mutation 'foo'
|
86
102
|
end
|
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.8.
|
4
|
+
version: 0.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -697,3 +697,4 @@ test_files:
|
|
697
697
|
- spec/unit/mutant/warning_filter_spec.rb
|
698
698
|
- spec/unit/mutant/zombifier_spec.rb
|
699
699
|
- spec/unit/mutant_spec.rb
|
700
|
+
has_rdoc:
|