mutant 0.8.16 → 0.8.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (367) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +1 -1
  3. data/Changelog.md +6 -0
  4. data/Gemfile +3 -1
  5. data/Gemfile.lock +66 -62
  6. data/Rakefile +2 -0
  7. data/bin/mutant +1 -0
  8. data/config/flay.yml +1 -1
  9. data/config/reek.yml +136 -136
  10. data/config/rubocop.yml +23 -1
  11. data/lib/mutant.rb +2 -0
  12. data/lib/mutant/actor.rb +2 -0
  13. data/lib/mutant/actor/env.rb +2 -0
  14. data/lib/mutant/actor/mailbox.rb +2 -0
  15. data/lib/mutant/actor/receiver.rb +2 -0
  16. data/lib/mutant/actor/sender.rb +2 -0
  17. data/lib/mutant/ast.rb +2 -0
  18. data/lib/mutant/ast/meta.rb +2 -0
  19. data/lib/mutant/ast/meta/const.rb +2 -0
  20. data/lib/mutant/ast/meta/optarg.rb +2 -0
  21. data/lib/mutant/ast/meta/resbody.rb +2 -0
  22. data/lib/mutant/ast/meta/restarg.rb +2 -0
  23. data/lib/mutant/ast/meta/send.rb +2 -0
  24. data/lib/mutant/ast/meta/symbol.rb +2 -0
  25. data/lib/mutant/ast/named_children.rb +2 -0
  26. data/lib/mutant/ast/node_predicates.rb +2 -0
  27. data/lib/mutant/ast/nodes.rb +2 -0
  28. data/lib/mutant/ast/regexp.rb +2 -0
  29. data/lib/mutant/ast/regexp/transformer.rb +2 -0
  30. data/lib/mutant/ast/regexp/transformer/alternative.rb +2 -0
  31. data/lib/mutant/ast/regexp/transformer/character_set.rb +2 -0
  32. data/lib/mutant/ast/regexp/transformer/direct.rb +2 -0
  33. data/lib/mutant/ast/regexp/transformer/options_group.rb +2 -0
  34. data/lib/mutant/ast/regexp/transformer/quantifier.rb +3 -1
  35. data/lib/mutant/ast/regexp/transformer/recursive.rb +2 -0
  36. data/lib/mutant/ast/regexp/transformer/root.rb +2 -0
  37. data/lib/mutant/ast/regexp/transformer/text.rb +2 -0
  38. data/lib/mutant/ast/sexp.rb +2 -0
  39. data/lib/mutant/ast/types.rb +2 -0
  40. data/lib/mutant/cli.rb +2 -0
  41. data/lib/mutant/color.rb +3 -1
  42. data/lib/mutant/config.rb +2 -0
  43. data/lib/mutant/context.rb +2 -0
  44. data/lib/mutant/diff.rb +4 -2
  45. data/lib/mutant/env.rb +2 -0
  46. data/lib/mutant/env/bootstrap.rb +2 -0
  47. data/lib/mutant/expression.rb +2 -0
  48. data/lib/mutant/expression/method.rb +2 -0
  49. data/lib/mutant/expression/methods.rb +2 -0
  50. data/lib/mutant/expression/namespace.rb +2 -0
  51. data/lib/mutant/expression/parser.rb +2 -0
  52. data/lib/mutant/integration.rb +2 -0
  53. data/lib/mutant/isolation.rb +2 -0
  54. data/lib/mutant/isolation/fork.rb +2 -0
  55. data/lib/mutant/isolation/none.rb +2 -0
  56. data/lib/mutant/loader.rb +2 -0
  57. data/lib/mutant/matcher.rb +2 -0
  58. data/lib/mutant/matcher/chain.rb +2 -0
  59. data/lib/mutant/matcher/compiler.rb +2 -0
  60. data/lib/mutant/matcher/config.rb +2 -0
  61. data/lib/mutant/matcher/filter.rb +2 -0
  62. data/lib/mutant/matcher/method.rb +2 -0
  63. data/lib/mutant/matcher/method/instance.rb +2 -0
  64. data/lib/mutant/matcher/method/singleton.rb +2 -0
  65. data/lib/mutant/matcher/methods.rb +2 -0
  66. data/lib/mutant/matcher/namespace.rb +2 -0
  67. data/lib/mutant/matcher/null.rb +2 -0
  68. data/lib/mutant/matcher/scope.rb +2 -0
  69. data/lib/mutant/matcher/static.rb +2 -0
  70. data/lib/mutant/meta.rb +4 -0
  71. data/lib/mutant/meta/example.rb +2 -0
  72. data/lib/mutant/meta/example/dsl.rb +2 -0
  73. data/lib/mutant/meta/example/verification.rb +2 -0
  74. data/lib/mutant/mutation.rb +2 -0
  75. data/lib/mutant/mutator.rb +2 -0
  76. data/lib/mutant/mutator/node.rb +4 -2
  77. data/lib/mutant/mutator/node/and_asgn.rb +2 -0
  78. data/lib/mutant/mutator/node/argument.rb +2 -0
  79. data/lib/mutant/mutator/node/arguments.rb +2 -0
  80. data/lib/mutant/mutator/node/begin.rb +2 -0
  81. data/lib/mutant/mutator/node/binary.rb +2 -0
  82. data/lib/mutant/mutator/node/block.rb +2 -0
  83. data/lib/mutant/mutator/node/break.rb +2 -0
  84. data/lib/mutant/mutator/node/case.rb +2 -0
  85. data/lib/mutant/mutator/node/class.rb +2 -0
  86. data/lib/mutant/mutator/node/conditional_loop.rb +2 -0
  87. data/lib/mutant/mutator/node/const.rb +2 -0
  88. data/lib/mutant/mutator/node/define.rb +2 -0
  89. data/lib/mutant/mutator/node/defined.rb +2 -0
  90. data/lib/mutant/mutator/node/dstr.rb +2 -0
  91. data/lib/mutant/mutator/node/dsym.rb +2 -0
  92. data/lib/mutant/mutator/node/generic.rb +2 -0
  93. data/lib/mutant/mutator/node/if.rb +2 -0
  94. data/lib/mutant/mutator/node/kwbegin.rb +2 -0
  95. data/lib/mutant/mutator/node/literal.rb +2 -0
  96. data/lib/mutant/mutator/node/literal/array.rb +2 -0
  97. data/lib/mutant/mutator/node/literal/boolean.rb +2 -0
  98. data/lib/mutant/mutator/node/literal/float.rb +2 -0
  99. data/lib/mutant/mutator/node/literal/hash.rb +2 -0
  100. data/lib/mutant/mutator/node/literal/integer.rb +2 -0
  101. data/lib/mutant/mutator/node/literal/nil.rb +2 -0
  102. data/lib/mutant/mutator/node/literal/range.rb +2 -0
  103. data/lib/mutant/mutator/node/literal/regex.rb +2 -0
  104. data/lib/mutant/mutator/node/literal/string.rb +2 -0
  105. data/lib/mutant/mutator/node/literal/symbol.rb +2 -0
  106. data/lib/mutant/mutator/node/masgn.rb +2 -0
  107. data/lib/mutant/mutator/node/match_current_line.rb +2 -0
  108. data/lib/mutant/mutator/node/mlhs.rb +2 -0
  109. data/lib/mutant/mutator/node/named_value/access.rb +2 -0
  110. data/lib/mutant/mutator/node/named_value/constant_assignment.rb +2 -0
  111. data/lib/mutant/mutator/node/named_value/variable_assignment.rb +2 -0
  112. data/lib/mutant/mutator/node/next.rb +2 -0
  113. data/lib/mutant/mutator/node/noop.rb +3 -1
  114. data/lib/mutant/mutator/node/nthref.rb +2 -0
  115. data/lib/mutant/mutator/node/op_asgn.rb +2 -0
  116. data/lib/mutant/mutator/node/or_asgn.rb +2 -0
  117. data/lib/mutant/mutator/node/regexp.rb +2 -0
  118. data/lib/mutant/mutator/node/regexp/alternation_meta.rb +2 -0
  119. data/lib/mutant/mutator/node/regexp/capture_group.rb +2 -0
  120. data/lib/mutant/mutator/node/regexp/character_type.rb +2 -0
  121. data/lib/mutant/mutator/node/regexp/end_of_line_anchor.rb +2 -0
  122. data/lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb +2 -0
  123. data/lib/mutant/mutator/node/regexp/greedy_zero_or_more.rb +2 -0
  124. data/lib/mutant/mutator/node/regopt.rb +2 -0
  125. data/lib/mutant/mutator/node/resbody.rb +2 -0
  126. data/lib/mutant/mutator/node/rescue.rb +2 -0
  127. data/lib/mutant/mutator/node/return.rb +2 -0
  128. data/lib/mutant/mutator/node/send.rb +2 -0
  129. data/lib/mutant/mutator/node/send/attribute_assignment.rb +2 -0
  130. data/lib/mutant/mutator/node/send/binary.rb +2 -0
  131. data/lib/mutant/mutator/node/send/conditional.rb +2 -0
  132. data/lib/mutant/mutator/node/send/index.rb +2 -0
  133. data/lib/mutant/mutator/node/splat.rb +2 -0
  134. data/lib/mutant/mutator/node/super.rb +2 -0
  135. data/lib/mutant/mutator/node/when.rb +2 -0
  136. data/lib/mutant/mutator/node/yield.rb +2 -0
  137. data/lib/mutant/mutator/node/zsuper.rb +2 -0
  138. data/lib/mutant/mutator/util.rb +2 -0
  139. data/lib/mutant/mutator/util/array.rb +2 -0
  140. data/lib/mutant/mutator/util/symbol.rb +2 -0
  141. data/lib/mutant/parallel.rb +2 -0
  142. data/lib/mutant/parallel/master.rb +2 -0
  143. data/lib/mutant/parallel/source.rb +2 -0
  144. data/lib/mutant/parallel/worker.rb +2 -0
  145. data/lib/mutant/parser.rb +2 -0
  146. data/lib/mutant/registry.rb +2 -0
  147. data/lib/mutant/reporter.rb +2 -0
  148. data/lib/mutant/reporter/cli.rb +2 -0
  149. data/lib/mutant/reporter/cli/format.rb +2 -0
  150. data/lib/mutant/reporter/cli/printer.rb +2 -0
  151. data/lib/mutant/reporter/cli/printer/config.rb +2 -0
  152. data/lib/mutant/reporter/cli/printer/env_progress.rb +2 -1
  153. data/lib/mutant/reporter/cli/printer/env_result.rb +2 -0
  154. data/lib/mutant/reporter/cli/printer/mutation_progress_result.rb +2 -0
  155. data/lib/mutant/reporter/cli/printer/mutation_result.rb +2 -0
  156. data/lib/mutant/reporter/cli/printer/status.rb +2 -0
  157. data/lib/mutant/reporter/cli/printer/status_progressive.rb +2 -0
  158. data/lib/mutant/reporter/cli/printer/subject_progress.rb +2 -0
  159. data/lib/mutant/reporter/cli/printer/subject_result.rb +2 -0
  160. data/lib/mutant/reporter/cli/printer/test_result.rb +2 -0
  161. data/lib/mutant/reporter/cli/tput.rb +2 -0
  162. data/lib/mutant/reporter/null.rb +2 -0
  163. data/lib/mutant/reporter/sequence.rb +2 -0
  164. data/lib/mutant/repository.rb +2 -0
  165. data/lib/mutant/require_highjack.rb +2 -0
  166. data/lib/mutant/result.rb +2 -0
  167. data/lib/mutant/runner.rb +2 -0
  168. data/lib/mutant/runner/sink.rb +2 -0
  169. data/lib/mutant/scope.rb +2 -0
  170. data/lib/mutant/selector.rb +2 -0
  171. data/lib/mutant/selector/expression.rb +2 -0
  172. data/lib/mutant/subject.rb +2 -0
  173. data/lib/mutant/subject/method.rb +2 -0
  174. data/lib/mutant/subject/method/instance.rb +2 -0
  175. data/lib/mutant/subject/method/singleton.rb +2 -0
  176. data/lib/mutant/test.rb +2 -0
  177. data/lib/mutant/util.rb +2 -0
  178. data/lib/mutant/version.rb +3 -1
  179. data/lib/mutant/warning_filter.rb +2 -0
  180. data/lib/mutant/zombifier.rb +2 -0
  181. data/meta/and.rb +2 -0
  182. data/meta/and_asgn.rb +2 -0
  183. data/meta/array.rb +2 -0
  184. data/meta/begin.rb +2 -0
  185. data/meta/block.rb +2 -0
  186. data/meta/block_pass.rb +2 -0
  187. data/meta/blockarg.rb +2 -0
  188. data/meta/break.rb +2 -0
  189. data/meta/case.rb +2 -0
  190. data/meta/casgn.rb +2 -0
  191. data/meta/cbase.rb +2 -0
  192. data/meta/class.rb +2 -0
  193. data/meta/const.rb +2 -0
  194. data/meta/csend.rb +2 -0
  195. data/meta/cvar.rb +2 -0
  196. data/meta/cvasgn.rb +2 -0
  197. data/meta/date.rb +2 -0
  198. data/meta/def.rb +2 -0
  199. data/meta/defined.rb +2 -0
  200. data/meta/dstr.rb +2 -0
  201. data/meta/dsym.rb +2 -0
  202. data/meta/ensure.rb +2 -0
  203. data/meta/false.rb +2 -0
  204. data/meta/float.rb +2 -0
  205. data/meta/gvar.rb +2 -0
  206. data/meta/gvasgn.rb +2 -0
  207. data/meta/hash.rb +2 -0
  208. data/meta/if.rb +2 -0
  209. data/meta/int.rb +2 -0
  210. data/meta/ivar.rb +2 -0
  211. data/meta/ivasgn.rb +2 -0
  212. data/meta/kwarg.rb +2 -0
  213. data/meta/kwbegin.rb +2 -0
  214. data/meta/kwoptarg.rb +2 -0
  215. data/meta/lvar.rb +2 -0
  216. data/meta/lvasgn.rb +2 -0
  217. data/meta/masgn.rb +2 -0
  218. data/meta/match_current_line.rb +2 -0
  219. data/meta/next.rb +2 -0
  220. data/meta/nil.rb +2 -0
  221. data/meta/nthref.rb +2 -0
  222. data/meta/op_assgn.rb +2 -0
  223. data/meta/or.rb +2 -0
  224. data/meta/or_asgn.rb +2 -0
  225. data/meta/range.rb +2 -0
  226. data/meta/redo.rb +2 -0
  227. data/meta/regexp.rb +2 -0
  228. data/meta/regexp/character_types.rb +2 -0
  229. data/meta/regexp/regexp_alternation_meta.rb +2 -0
  230. data/meta/regexp/regexp_bol_anchor.rb +2 -0
  231. data/meta/regexp/regexp_bos_anchor.rb +2 -0
  232. data/meta/regexp/regexp_capture_group.rb +2 -0
  233. data/meta/regexp/regexp_eol_anchor.rb +2 -0
  234. data/meta/regexp/regexp_eos_anchor.rb +2 -0
  235. data/meta/regexp/regexp_eos_ob_eol_anchor.rb +2 -0
  236. data/meta/regexp/regexp_greedy_zero_or_more.rb +2 -0
  237. data/meta/regexp/regexp_root_expression.rb +2 -0
  238. data/meta/regopt.rb +2 -0
  239. data/meta/rescue.rb +2 -0
  240. data/meta/restarg.rb +2 -0
  241. data/meta/return.rb +2 -0
  242. data/meta/self.rb +2 -0
  243. data/meta/send.rb +2 -0
  244. data/meta/str.rb +2 -0
  245. data/meta/super.rb +2 -0
  246. data/meta/sym.rb +2 -0
  247. data/meta/true.rb +2 -0
  248. data/meta/until.rb +2 -0
  249. data/meta/while.rb +2 -0
  250. data/meta/yield.rb +2 -0
  251. data/mutant-rspec.gemspec +3 -1
  252. data/mutant.gemspec +15 -13
  253. data/spec/integration/mutant/corpus_spec.rb +2 -0
  254. data/spec/integration/mutant/isolation/fork_spec.rb +3 -0
  255. data/spec/integration/mutant/null_spec.rb +2 -0
  256. data/spec/integration/mutant/rspec_spec.rb +2 -0
  257. data/spec/integration/mutant/test_mutator_handles_types_spec.rb +2 -0
  258. data/spec/shared/framework_integration_behavior.rb +2 -0
  259. data/spec/shared/method_matcher_behavior.rb +2 -0
  260. data/spec/spec_helper.rb +2 -1
  261. data/spec/support/corpus.rb +2 -0
  262. data/spec/support/fake_actor.rb +3 -1
  263. data/spec/support/file_system.rb +2 -0
  264. data/spec/support/ice_nine_config.rb +2 -0
  265. data/spec/support/rb_bug.rb +2 -0
  266. data/spec/support/ruby_vm.rb +3 -0
  267. data/spec/support/shared_context.rb +3 -1
  268. data/spec/support/test_app.rb +3 -1
  269. data/spec/support/warning.rb +2 -0
  270. data/spec/support/warnings.yml +1 -1
  271. data/spec/support/xspec.rb +4 -2
  272. data/spec/unit/mutant/actor/binding_spec.rb +2 -0
  273. data/spec/unit/mutant/actor/env_spec.rb +2 -0
  274. data/spec/unit/mutant/actor/mailbox_spec.rb +2 -0
  275. data/spec/unit/mutant/actor/message_spec.rb +2 -0
  276. data/spec/unit/mutant/actor/receiver_spec.rb +2 -0
  277. data/spec/unit/mutant/actor/sender_spec.rb +2 -0
  278. data/spec/unit/mutant/ast/meta/optarg_spec.rb +2 -0
  279. data/spec/unit/mutant/ast/meta/send/proc_predicate_spec.rb +2 -0
  280. data/spec/unit/mutant/ast/meta/send/receiver_possible_top_level_const_predicate_spec.rb +2 -0
  281. data/spec/unit/mutant/ast/meta/send_spec.rb +2 -0
  282. data/spec/unit/mutant/ast/named_children_spec.rb +2 -0
  283. data/spec/unit/mutant/ast/regexp/parse_spec.rb +2 -0
  284. data/spec/unit/mutant/ast/regexp/supported_predicate_spec.rb +2 -0
  285. data/spec/unit/mutant/ast/regexp/transformer/lookup_table/table_spec.rb +2 -0
  286. data/spec/unit/mutant/ast/regexp/transformer/lookup_table_spec.rb +2 -0
  287. data/spec/unit/mutant/ast/regexp/transformer_spec.rb +2 -0
  288. data/spec/unit/mutant/ast/regexp_spec.rb +2 -0
  289. data/spec/unit/mutant/ast/sexp_spec.rb +2 -0
  290. data/spec/unit/mutant/ast_spec.rb +2 -0
  291. data/spec/unit/mutant/cli_spec.rb +17 -15
  292. data/spec/unit/mutant/context_spec.rb +2 -0
  293. data/spec/unit/mutant/diff_spec.rb +8 -6
  294. data/spec/unit/mutant/env/bootstrap_spec.rb +2 -0
  295. data/spec/unit/mutant/env_spec.rb +2 -0
  296. data/spec/unit/mutant/expression/method_spec.rb +2 -0
  297. data/spec/unit/mutant/expression/methods_spec.rb +2 -0
  298. data/spec/unit/mutant/expression/namespace/exact_spec.rb +2 -0
  299. data/spec/unit/mutant/expression/namespace/recursive_spec.rb +2 -0
  300. data/spec/unit/mutant/expression/parser_spec.rb +2 -0
  301. data/spec/unit/mutant/expression_spec.rb +2 -0
  302. data/spec/unit/mutant/integration/rspec_spec.rb +2 -0
  303. data/spec/unit/mutant/integration_spec.rb +2 -0
  304. data/spec/unit/mutant/isolation/fork_spec.rb +2 -0
  305. data/spec/unit/mutant/isolation/none_spec.rb +2 -0
  306. data/spec/unit/mutant/loader_spec.rb +2 -0
  307. data/spec/unit/mutant/matcher/chain_spec.rb +2 -0
  308. data/spec/unit/mutant/matcher/compiler/subject_prefix_spec.rb +2 -0
  309. data/spec/unit/mutant/matcher/compiler_spec.rb +2 -0
  310. data/spec/unit/mutant/matcher/config_spec.rb +2 -0
  311. data/spec/unit/mutant/matcher/filter_spec.rb +2 -0
  312. data/spec/unit/mutant/matcher/method/instance_spec.rb +2 -0
  313. data/spec/unit/mutant/matcher/method/singleton_spec.rb +2 -0
  314. data/spec/unit/mutant/matcher/methods/instance_spec.rb +2 -0
  315. data/spec/unit/mutant/matcher/methods/singleton_spec.rb +2 -0
  316. data/spec/unit/mutant/matcher/namespace_spec.rb +2 -0
  317. data/spec/unit/mutant/matcher/null_spec.rb +2 -0
  318. data/spec/unit/mutant/matcher/scope_spec.rb +2 -0
  319. data/spec/unit/mutant/matcher/static_spec.rb +2 -0
  320. data/spec/unit/mutant/meta/example/dsl_spec.rb +2 -0
  321. data/spec/unit/mutant/meta/example/verification_spec.rb +5 -3
  322. data/spec/unit/mutant/meta/example_spec.rb +2 -0
  323. data/spec/unit/mutant/mutation_spec.rb +2 -0
  324. data/spec/unit/mutant/mutator/node_spec.rb +2 -0
  325. data/spec/unit/mutant/mutator_spec.rb +2 -0
  326. data/spec/unit/mutant/parallel/driver_spec.rb +2 -0
  327. data/spec/unit/mutant/parallel/master_spec.rb +2 -0
  328. data/spec/unit/mutant/parallel/source/array_spec.rb +2 -0
  329. data/spec/unit/mutant/parallel/worker_spec.rb +2 -0
  330. data/spec/unit/mutant/parallel_spec.rb +2 -0
  331. data/spec/unit/mutant/parser_spec.rb +2 -0
  332. data/spec/unit/mutant/registry_spec.rb +2 -0
  333. data/spec/unit/mutant/reporter/cli/printer/config_spec.rb +4 -2
  334. data/spec/unit/mutant/reporter/cli/printer/env_progress_spec.rb +5 -3
  335. data/spec/unit/mutant/reporter/cli/printer/env_result_spec.rb +3 -1
  336. data/spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb +2 -0
  337. data/spec/unit/mutant/reporter/cli/printer/mutation_result_spec.rb +6 -4
  338. data/spec/unit/mutant/reporter/cli/printer/status_progressive_spec.rb +6 -4
  339. data/spec/unit/mutant/reporter/cli/printer/status_spec.rb +6 -4
  340. data/spec/unit/mutant/reporter/cli/printer/subject_progress_spec.rb +5 -3
  341. data/spec/unit/mutant/reporter/cli/printer/subject_result_spec.rb +5 -3
  342. data/spec/unit/mutant/reporter/cli/printer/test_result_spec.rb +3 -1
  343. data/spec/unit/mutant/reporter/cli/printer_spec.rb +6 -4
  344. data/spec/unit/mutant/reporter/cli/tput_spec.rb +2 -0
  345. data/spec/unit/mutant/reporter/cli_spec.rb +7 -5
  346. data/spec/unit/mutant/reporter/null_spec.rb +2 -0
  347. data/spec/unit/mutant/reporter/sequence_spec.rb +2 -0
  348. data/spec/unit/mutant/repository/diff_spec.rb +3 -1
  349. data/spec/unit/mutant/repository/subject_filter_spec.rb +2 -0
  350. data/spec/unit/mutant/require_highjack_spec.rb +2 -0
  351. data/spec/unit/mutant/result/class_methods_spec.rb +2 -0
  352. data/spec/unit/mutant/result/env_spec.rb +2 -0
  353. data/spec/unit/mutant/result/mutation_spec.rb +2 -0
  354. data/spec/unit/mutant/result/subject_spec.rb +2 -0
  355. data/spec/unit/mutant/result_spec.rb +2 -0
  356. data/spec/unit/mutant/runner/sink_spec.rb +2 -0
  357. data/spec/unit/mutant/runner_spec.rb +2 -0
  358. data/spec/unit/mutant/selector/expression_spec.rb +2 -0
  359. data/spec/unit/mutant/subject/method/instance_spec.rb +2 -0
  360. data/spec/unit/mutant/subject/method/singleton_spec.rb +2 -0
  361. data/spec/unit/mutant/subject_spec.rb +2 -0
  362. data/spec/unit/mutant/util/one_spec.rb +2 -0
  363. data/spec/unit/mutant/warning_filter_spec.rb +3 -1
  364. data/spec/unit/mutant/zombifier_spec.rb +2 -0
  365. data/spec/unit/mutant_spec.rb +2 -0
  366. metadata +57 -64
  367. data/spec/support/compress_helper.rb +0 -9
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Mutant
2
4
  # Zombifier namespace
3
5
  class Zombifier
data/meta/and.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :and do
2
4
  source 'true and false'
3
5
 
data/meta/and_asgn.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :and_asgn do
2
4
  source 'a &&= 1'
3
5
 
data/meta/array.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :array do
2
4
  source '[true]'
3
5
 
data/meta/begin.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :begin do
2
4
 
3
5
  source 'true; false'
data/meta/block.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :block do
2
4
  source 'foo { a; b }'
3
5
 
data/meta/block_pass.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :block_pass do
2
4
  source 'foo(&bar)'
3
5
 
data/meta/blockarg.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :blockarg do
2
4
  source 'foo { |&bar| }'
3
5
 
data/meta/break.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :break do
2
4
  source 'break true'
3
5
 
data/meta/case.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :case do
2
4
  source <<-RUBY
3
5
  case
data/meta/casgn.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :casgn do
2
4
  source 'A = true'
3
5
 
data/meta/cbase.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :cbase do
2
4
  source '::A'
3
5
 
data/meta/class.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :class do
2
4
  source 'class Foo; bar; end'
3
5
 
data/meta/const.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :const do
2
4
  source 'A::B::C'
3
5
 
data/meta/csend.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :csend do
2
4
  source 'a&.b'
3
5
 
data/meta/cvar.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :cvar do
2
4
  source '@@a'
3
5
 
data/meta/cvasgn.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :cvasgn do
2
4
  source '@@a = true'
3
5
 
data/meta/date.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :send do
2
4
  source 'Date.parse(nil)'
3
5
 
data/meta/def.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :def do
2
4
  source 'def foo; end'
3
5
 
data/meta/defined.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :defined? do
2
4
  source 'defined?(foo)'
3
5
 
data/meta/dstr.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :dstr do
2
4
  source '"foo#{bar}baz"'
3
5
 
data/meta/dsym.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :dsym do
2
4
  source ':"foo#{bar}baz"'
3
5
 
data/meta/ensure.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :ensure do
2
4
  source 'begin; rescue; ensure; true; end'
3
5
 
data/meta/false.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :false do
2
4
  source 'false'
3
5
 
data/meta/float.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :float do
2
4
  source '10.0'
3
5
 
data/meta/gvar.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :gvar do
2
4
  source '$a'
3
5
 
data/meta/gvasgn.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :gvasgn do
2
4
  source '$a = true'
3
5
 
data/meta/hash.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :hash do
2
4
  source '{true => true, false => false}'
3
5
 
data/meta/if.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :if do
2
4
  source 'if condition; true; else false; end'
3
5
 
data/meta/int.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :int do
2
4
  source '10'
3
5
 
data/meta/ivar.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :ivar do
2
4
  source '@foo'
3
5
 
data/meta/ivasgn.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :ivasgn do
2
4
  source '@a = true'
3
5
 
data/meta/kwarg.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :kwarg do
2
4
  source 'def foo(bar:); end'
3
5
 
data/meta/kwbegin.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :kwbegin do
2
4
  source 'begin; true; end'
3
5
 
data/meta/kwoptarg.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :kwarg do
2
4
  source 'def foo(bar: baz); end'
3
5
 
data/meta/lvar.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :lvar do
2
4
  source 'a = nil; a'
3
5
 
data/meta/lvasgn.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :lvasgn do
2
4
  source 'a = true'
3
5
 
data/meta/masgn.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :masgn do
2
4
  source 'a, b = c, d'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :match_current_line do
2
4
  source 'true if /foo/'
3
5
 
data/meta/next.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :next do
2
4
  source 'next true'
3
5
 
data/meta/nil.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :nil do
2
4
  source 'nil'
3
5
  end
data/meta/nthref.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :nth_ref do
2
4
  source '$1'
3
5
 
data/meta/op_assgn.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :op_asgn do
2
4
  source '@a.b += 1'
3
5
 
data/meta/or.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :or do
2
4
  source 'true or false'
3
5
 
data/meta/or_asgn.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :or_asgn do
2
4
  source 'a ||= 1'
3
5
 
data/meta/range.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :irange do
2
4
  source '1..100'
3
5
 
data/meta/redo.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :redo do
2
4
  source 'redo'
3
5
  end
data/meta/regexp.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :regexp do
2
4
  source '/foo/'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  mutations = {
2
4
  [:regexp_digit_type, '/\d/'] => [:regexp_nondigit_type, '/\D/'],
3
5
  [:regexp_hex_type, '/\h/'] => [:regexp_nonhex_type, '/\H/'],
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :regexp_alternation_meta do
2
4
  source '/\A(foo|bar|baz)\z/'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :regexp_bol_anchor do
2
4
  source '/^/'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :regexp_bos_anchor do
2
4
  source '/\A/'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :regexp_capture_group do
2
4
  source '/()/'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :regexp_eol_anchor do
2
4
  source '/$/'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :regexp_eos_anchor do
2
4
  source '/\z/'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :regexp_eos_ob_eol_anchor do
2
4
  source '/\Z/'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :regexp_greedy_zero_or_more do
2
4
  source '/\d*/'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :regexp_root_expression do
2
4
  source '/^/'
3
5
 
data/meta/regopt.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :regopt do
2
4
  source '/foo/ixom'
3
5
 
data/meta/rescue.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :rescue do
2
4
  source 'begin; rescue ExceptionA, ExceptionB => error; true; end'
3
5
 
data/meta/restarg.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Mutant::Meta::Example.add :restarg do
2
4
  source 'def foo(*bar); end'
3
5