mutant 0.5.18 → 0.5.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +7 -0
- data/README.md +2 -2
- data/config/flay.yml +1 -1
- data/lib/mutant.rb +4 -1
- data/lib/mutant/meta/example/dsl.rb +11 -0
- data/lib/mutant/mutator/node.rb +29 -5
- data/lib/mutant/mutator/node/and_asgn.rb +34 -0
- data/lib/mutant/mutator/node/binary.rb +1 -1
- data/lib/mutant/mutator/node/block.rb +1 -1
- data/lib/mutant/mutator/node/break.rb +29 -0
- data/lib/mutant/mutator/node/case.rb +1 -1
- data/lib/mutant/mutator/node/conditional_loop.rb +1 -1
- data/lib/mutant/mutator/node/const.rb +1 -1
- data/lib/mutant/mutator/node/defined.rb +30 -0
- data/lib/mutant/mutator/node/dstr.rb +1 -1
- data/lib/mutant/mutator/node/dsym.rb +1 -1
- data/lib/mutant/mutator/node/generic.rb +1 -1
- data/lib/mutant/mutator/node/if.rb +4 -2
- data/lib/mutant/mutator/node/kwbegin.rb +1 -1
- data/lib/mutant/mutator/node/literal/array.rb +1 -1
- data/lib/mutant/mutator/node/literal/fixnum.rb +1 -1
- data/lib/mutant/mutator/node/literal/float.rb +1 -1
- data/lib/mutant/mutator/node/literal/hash.rb +1 -1
- data/lib/mutant/mutator/node/literal/range.rb +1 -1
- data/lib/mutant/mutator/node/literal/regex.rb +1 -1
- data/lib/mutant/mutator/node/literal/string.rb +1 -1
- data/lib/mutant/mutator/node/literal/symbol.rb +1 -1
- data/lib/mutant/mutator/node/masgn.rb +1 -1
- data/lib/mutant/mutator/node/match_current_line.rb +1 -1
- data/lib/mutant/mutator/node/named_value/access.rb +1 -1
- data/lib/mutant/mutator/node/named_value/variable_assignment.rb +1 -1
- data/lib/mutant/mutator/node/{loop_control.rb → next.rb} +5 -9
- data/lib/mutant/mutator/node/op_asgn.rb +9 -4
- data/lib/mutant/mutator/node/or_asgn.rb +6 -2
- data/lib/mutant/mutator/node/resbody.rb +2 -2
- data/lib/mutant/mutator/node/return.rb +1 -1
- data/lib/mutant/mutator/node/send.rb +1 -1
- data/lib/mutant/mutator/node/splat.rb +1 -1
- data/lib/mutant/mutator/node/super.rb +1 -1
- data/lib/mutant/mutator/node/yield.rb +1 -1
- data/lib/mutant/mutator/node/zsuper.rb +1 -1
- data/lib/mutant/node_helpers.rb +6 -5
- data/lib/mutant/version.rb +1 -1
- data/meta/and.rb +1 -1
- data/meta/and_asgn.rb +3 -1
- data/meta/array.rb +2 -2
- data/meta/block.rb +6 -4
- data/meta/block_pass.rb +1 -1
- data/meta/blockarg.rb +1 -1
- data/meta/break.rb +1 -2
- data/meta/case.rb +104 -183
- data/meta/cbase.rb +1 -1
- data/meta/const.rb +1 -1
- data/meta/cvar.rb +1 -1
- data/meta/cvasgn.rb +1 -1
- data/meta/{define.rb → def.rb} +2 -1
- data/meta/dstr.rb +4 -1
- data/meta/dsym.rb +4 -2
- data/meta/ensure.rb +1 -1
- data/meta/false.rb +8 -0
- data/meta/float.rb +3 -4
- data/meta/gvar.rb +1 -1
- data/meta/gvasgn.rb +1 -1
- data/meta/hash.rb +1 -2
- data/meta/if.rb +25 -27
- data/meta/{fixnum.rb → int.rb} +1 -2
- data/meta/ivasgn.rb +1 -1
- data/meta/kwbegin.rb +1 -1
- data/meta/lvar.rb +2 -0
- data/meta/lvasgn.rb +1 -1
- data/meta/masgn.rb +1 -1
- data/meta/match_current_line.rb +1 -1
- data/meta/next.rb +1 -1
- data/meta/op_assgn.rb +3 -1
- data/meta/{binary.rb → or.rb} +1 -1
- data/meta/or_asgn.rb +4 -2
- data/meta/range.rb +6 -2
- data/meta/regex.rb +4 -2
- data/meta/rescue.rb +7 -6
- data/meta/restarg.rb +3 -1
- data/meta/return.rb +3 -2
- data/meta/send.rb +48 -51
- data/meta/{string.rb → str.rb} +1 -1
- data/meta/super.rb +6 -3
- data/meta/symbol.rb +1 -1
- data/meta/true.rb +8 -0
- data/meta/until.rb +17 -0
- data/meta/while.rb +4 -2
- data/meta/yield.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +13 -8
- data/meta/unless.rb +0 -15
data/meta/yield.rb
CHANGED
data/spec/spec_helper.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.5.
|
4
|
+
version: 0.5.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -307,16 +307,19 @@ files:
|
|
307
307
|
- lib/mutant/mutation/neutral.rb
|
308
308
|
- lib/mutant/mutator.rb
|
309
309
|
- lib/mutant/mutator/node.rb
|
310
|
+
- lib/mutant/mutator/node/and_asgn.rb
|
310
311
|
- lib/mutant/mutator/node/argument.rb
|
311
312
|
- lib/mutant/mutator/node/arguments.rb
|
312
313
|
- lib/mutant/mutator/node/begin.rb
|
313
314
|
- lib/mutant/mutator/node/binary.rb
|
314
315
|
- lib/mutant/mutator/node/block.rb
|
315
316
|
- lib/mutant/mutator/node/blockarg.rb
|
317
|
+
- lib/mutant/mutator/node/break.rb
|
316
318
|
- lib/mutant/mutator/node/case.rb
|
317
319
|
- lib/mutant/mutator/node/conditional_loop.rb
|
318
320
|
- lib/mutant/mutator/node/const.rb
|
319
321
|
- lib/mutant/mutator/node/define.rb
|
322
|
+
- lib/mutant/mutator/node/defined.rb
|
320
323
|
- lib/mutant/mutator/node/dstr.rb
|
321
324
|
- lib/mutant/mutator/node/dsym.rb
|
322
325
|
- lib/mutant/mutator/node/generic.rb
|
@@ -333,13 +336,13 @@ files:
|
|
333
336
|
- lib/mutant/mutator/node/literal/regex.rb
|
334
337
|
- lib/mutant/mutator/node/literal/string.rb
|
335
338
|
- lib/mutant/mutator/node/literal/symbol.rb
|
336
|
-
- lib/mutant/mutator/node/loop_control.rb
|
337
339
|
- lib/mutant/mutator/node/masgn.rb
|
338
340
|
- lib/mutant/mutator/node/match_current_line.rb
|
339
341
|
- lib/mutant/mutator/node/mlhs.rb
|
340
342
|
- lib/mutant/mutator/node/named_value/access.rb
|
341
343
|
- lib/mutant/mutator/node/named_value/constant_assignment.rb
|
342
344
|
- lib/mutant/mutator/node/named_value/variable_assignment.rb
|
345
|
+
- lib/mutant/mutator/node/next.rb
|
343
346
|
- lib/mutant/mutator/node/noop.rb
|
344
347
|
- lib/mutant/mutator/node/nthref.rb
|
345
348
|
- lib/mutant/mutator/node/op_asgn.rb
|
@@ -400,7 +403,6 @@ files:
|
|
400
403
|
- meta/and_asgn.rb
|
401
404
|
- meta/array.rb
|
402
405
|
- meta/begin.rb
|
403
|
-
- meta/binary.rb
|
404
406
|
- meta/block.rb
|
405
407
|
- meta/block_pass.rb
|
406
408
|
- meta/blockarg.rb
|
@@ -412,17 +414,18 @@ files:
|
|
412
414
|
- meta/const.rb
|
413
415
|
- meta/cvar.rb
|
414
416
|
- meta/cvasgn.rb
|
415
|
-
- meta/
|
417
|
+
- meta/def.rb
|
416
418
|
- meta/defined.rb
|
417
419
|
- meta/dstr.rb
|
418
420
|
- meta/dsym.rb
|
419
421
|
- meta/ensure.rb
|
420
|
-
- meta/
|
422
|
+
- meta/false.rb
|
421
423
|
- meta/float.rb
|
422
424
|
- meta/gvar.rb
|
423
425
|
- meta/gvasgn.rb
|
424
426
|
- meta/hash.rb
|
425
427
|
- meta/if.rb
|
428
|
+
- meta/int.rb
|
426
429
|
- meta/ivasgn.rb
|
427
430
|
- meta/kwbegin.rb
|
428
431
|
- meta/lvar.rb
|
@@ -433,6 +436,7 @@ files:
|
|
433
436
|
- meta/nil.rb
|
434
437
|
- meta/nthref.rb
|
435
438
|
- meta/op_assgn.rb
|
439
|
+
- meta/or.rb
|
436
440
|
- meta/or_asgn.rb
|
437
441
|
- meta/range.rb
|
438
442
|
- meta/redo.rb
|
@@ -442,10 +446,11 @@ files:
|
|
442
446
|
- meta/return.rb
|
443
447
|
- meta/self.rb
|
444
448
|
- meta/send.rb
|
445
|
-
- meta/
|
449
|
+
- meta/str.rb
|
446
450
|
- meta/super.rb
|
447
451
|
- meta/symbol.rb
|
448
|
-
- meta/
|
452
|
+
- meta/true.rb
|
453
|
+
- meta/until.rb
|
449
454
|
- meta/while.rb
|
450
455
|
- meta/yield.rb
|
451
456
|
- mutant-rspec.gemspec
|
data/meta/unless.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
Mutant::Meta::Example.add do
|
4
|
-
source 'until true; foo; bar; end'
|
5
|
-
|
6
|
-
mutation 'until true; bar; end'
|
7
|
-
mutation 'until true; foo; end'
|
8
|
-
mutation 'until true; end'
|
9
|
-
mutation 'until false; foo; bar; end'
|
10
|
-
mutation 'until nil; foo; bar; end'
|
11
|
-
mutation 'until true; foo; nil; end'
|
12
|
-
mutation 'until true; nil; bar; end'
|
13
|
-
mutation 'until true; raise; end'
|
14
|
-
mutation 'nil'
|
15
|
-
end
|