mutant 0.5.18 → 0.5.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.md +7 -0
  3. data/README.md +2 -2
  4. data/config/flay.yml +1 -1
  5. data/lib/mutant.rb +4 -1
  6. data/lib/mutant/meta/example/dsl.rb +11 -0
  7. data/lib/mutant/mutator/node.rb +29 -5
  8. data/lib/mutant/mutator/node/and_asgn.rb +34 -0
  9. data/lib/mutant/mutator/node/binary.rb +1 -1
  10. data/lib/mutant/mutator/node/block.rb +1 -1
  11. data/lib/mutant/mutator/node/break.rb +29 -0
  12. data/lib/mutant/mutator/node/case.rb +1 -1
  13. data/lib/mutant/mutator/node/conditional_loop.rb +1 -1
  14. data/lib/mutant/mutator/node/const.rb +1 -1
  15. data/lib/mutant/mutator/node/defined.rb +30 -0
  16. data/lib/mutant/mutator/node/dstr.rb +1 -1
  17. data/lib/mutant/mutator/node/dsym.rb +1 -1
  18. data/lib/mutant/mutator/node/generic.rb +1 -1
  19. data/lib/mutant/mutator/node/if.rb +4 -2
  20. data/lib/mutant/mutator/node/kwbegin.rb +1 -1
  21. data/lib/mutant/mutator/node/literal/array.rb +1 -1
  22. data/lib/mutant/mutator/node/literal/fixnum.rb +1 -1
  23. data/lib/mutant/mutator/node/literal/float.rb +1 -1
  24. data/lib/mutant/mutator/node/literal/hash.rb +1 -1
  25. data/lib/mutant/mutator/node/literal/range.rb +1 -1
  26. data/lib/mutant/mutator/node/literal/regex.rb +1 -1
  27. data/lib/mutant/mutator/node/literal/string.rb +1 -1
  28. data/lib/mutant/mutator/node/literal/symbol.rb +1 -1
  29. data/lib/mutant/mutator/node/masgn.rb +1 -1
  30. data/lib/mutant/mutator/node/match_current_line.rb +1 -1
  31. data/lib/mutant/mutator/node/named_value/access.rb +1 -1
  32. data/lib/mutant/mutator/node/named_value/variable_assignment.rb +1 -1
  33. data/lib/mutant/mutator/node/{loop_control.rb → next.rb} +5 -9
  34. data/lib/mutant/mutator/node/op_asgn.rb +9 -4
  35. data/lib/mutant/mutator/node/or_asgn.rb +6 -2
  36. data/lib/mutant/mutator/node/resbody.rb +2 -2
  37. data/lib/mutant/mutator/node/return.rb +1 -1
  38. data/lib/mutant/mutator/node/send.rb +1 -1
  39. data/lib/mutant/mutator/node/splat.rb +1 -1
  40. data/lib/mutant/mutator/node/super.rb +1 -1
  41. data/lib/mutant/mutator/node/yield.rb +1 -1
  42. data/lib/mutant/mutator/node/zsuper.rb +1 -1
  43. data/lib/mutant/node_helpers.rb +6 -5
  44. data/lib/mutant/version.rb +1 -1
  45. data/meta/and.rb +1 -1
  46. data/meta/and_asgn.rb +3 -1
  47. data/meta/array.rb +2 -2
  48. data/meta/block.rb +6 -4
  49. data/meta/block_pass.rb +1 -1
  50. data/meta/blockarg.rb +1 -1
  51. data/meta/break.rb +1 -2
  52. data/meta/case.rb +104 -183
  53. data/meta/cbase.rb +1 -1
  54. data/meta/const.rb +1 -1
  55. data/meta/cvar.rb +1 -1
  56. data/meta/cvasgn.rb +1 -1
  57. data/meta/{define.rb → def.rb} +2 -1
  58. data/meta/dstr.rb +4 -1
  59. data/meta/dsym.rb +4 -2
  60. data/meta/ensure.rb +1 -1
  61. data/meta/false.rb +8 -0
  62. data/meta/float.rb +3 -4
  63. data/meta/gvar.rb +1 -1
  64. data/meta/gvasgn.rb +1 -1
  65. data/meta/hash.rb +1 -2
  66. data/meta/if.rb +25 -27
  67. data/meta/{fixnum.rb → int.rb} +1 -2
  68. data/meta/ivasgn.rb +1 -1
  69. data/meta/kwbegin.rb +1 -1
  70. data/meta/lvar.rb +2 -0
  71. data/meta/lvasgn.rb +1 -1
  72. data/meta/masgn.rb +1 -1
  73. data/meta/match_current_line.rb +1 -1
  74. data/meta/next.rb +1 -1
  75. data/meta/op_assgn.rb +3 -1
  76. data/meta/{binary.rb → or.rb} +1 -1
  77. data/meta/or_asgn.rb +4 -2
  78. data/meta/range.rb +6 -2
  79. data/meta/regex.rb +4 -2
  80. data/meta/rescue.rb +7 -6
  81. data/meta/restarg.rb +3 -1
  82. data/meta/return.rb +3 -2
  83. data/meta/send.rb +48 -51
  84. data/meta/{string.rb → str.rb} +1 -1
  85. data/meta/super.rb +6 -3
  86. data/meta/symbol.rb +1 -1
  87. data/meta/true.rb +8 -0
  88. data/meta/until.rb +17 -0
  89. data/meta/while.rb +4 -2
  90. data/meta/yield.rb +1 -1
  91. data/spec/spec_helper.rb +1 -1
  92. metadata +13 -8
  93. data/meta/unless.rb +0 -15
data/meta/yield.rb CHANGED
@@ -3,8 +3,8 @@
3
3
  Mutant::Meta::Example.add do
4
4
  source 'yield true'
5
5
 
6
+ singleton_mutations
6
7
  mutation 'yield false'
7
8
  mutation 'yield nil'
8
9
  mutation 'yield'
9
- mutation 'nil'
10
10
  end
data/spec/spec_helper.rb CHANGED
@@ -14,7 +14,7 @@ if ENV['COVERAGE'] == 'true'
14
14
  add_filter 'spec'
15
15
  add_filter 'vendor'
16
16
  add_filter 'test_app'
17
- add_filter 'lib/mutant/meta/**/*.rb'
17
+ add_filter 'lib/mutant/meta/*'
18
18
 
19
19
  minimum_coverage 89.77 # TODO: raise this to 100, then mutation test
20
20
  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.5.18
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-04 00:00:00.000000000 Z
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/define.rb
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/fixnum.rb
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/string.rb
449
+ - meta/str.rb
446
450
  - meta/super.rb
447
451
  - meta/symbol.rb
448
- - meta/unless.rb
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