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
  RSpec.describe Mutant::Selector::Expression do
2
4
  describe '#call' do
3
5
  let(:object) { described_class.new(integration) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Mutant::Subject::Method::Instance do
2
4
  let(:object) { described_class.new(context, node) }
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Mutant::Subject::Method::Singleton do
2
4
 
3
5
  let(:object) { described_class.new(context, node) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Mutant::Subject do
2
4
  let(:class_under_test) do
3
5
  Class.new(described_class) do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Mutant::Util, '.one' do
2
4
  let(:first) { instance_double(Object) }
3
5
  let(:array) { instance_double(Array, one?: true, first: first) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Mutant::WarningFilter do
2
4
  before do
3
5
  if RUBY_ENGINE.eql?('rbx')
@@ -69,7 +71,7 @@ RSpec.describe Mutant::WarningFilter do
69
71
 
70
72
  it 'returns warnings generated within block' do
71
73
  warnings = object.use do
72
- # rubocop:disable Lint/Eval
74
+ # rubocop:disable Style/EvalWithLocation
73
75
  eval(<<-RUBY)
74
76
  Class.new do
75
77
  def foo
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Mutant::Zombifier do
2
4
  let(:root_require) { Pathname.new('project') }
3
5
  let(:pathname) { class_double(Pathname) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Mutant do
2
4
  let(:object) { described_class }
3
5
 
metadata CHANGED
@@ -1,259 +1,253 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.16
4
+ version: 0.8.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-03 00:00:00.000000000 Z
11
+ date: 2018-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: parser
14
+ name: abstract_type
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 2.3.1.4
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '2.5'
19
+ version: 0.0.7
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 2.3.1.4
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '2.5'
26
+ version: 0.0.7
33
27
  - !ruby/object:Gem::Dependency
34
- name: ast
28
+ name: adamantium
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '2.2'
33
+ version: 0.2.0
40
34
  type: :runtime
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '2.2'
40
+ version: 0.2.0
47
41
  - !ruby/object:Gem::Dependency
48
- name: diff-lcs
42
+ name: anima
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '1.3'
47
+ version: 0.3.0
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: '1.3'
54
+ version: 0.3.0
61
55
  - !ruby/object:Gem::Dependency
62
- name: parallel
56
+ name: ast
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - "~>"
66
60
  - !ruby/object:Gem::Version
67
- version: '1.3'
61
+ version: '2.2'
68
62
  type: :runtime
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
66
  - - "~>"
73
67
  - !ruby/object:Gem::Version
74
- version: '1.3'
68
+ version: '2.2'
75
69
  - !ruby/object:Gem::Dependency
76
- name: morpher
70
+ name: concord
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
73
  - - "~>"
80
74
  - !ruby/object:Gem::Version
81
- version: 0.2.6
75
+ version: 0.1.5
82
76
  type: :runtime
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
80
  - - "~>"
87
81
  - !ruby/object:Gem::Version
88
- version: 0.2.6
82
+ version: 0.1.5
89
83
  - !ruby/object:Gem::Dependency
90
- name: procto
84
+ name: diff-lcs
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - "~>"
94
88
  - !ruby/object:Gem::Version
95
- version: 0.0.2
89
+ version: '1.3'
96
90
  type: :runtime
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - "~>"
101
95
  - !ruby/object:Gem::Version
102
- version: 0.0.2
96
+ version: '1.3'
103
97
  - !ruby/object:Gem::Dependency
104
- name: abstract_type
98
+ name: equalizer
105
99
  requirement: !ruby/object:Gem::Requirement
106
100
  requirements:
107
101
  - - "~>"
108
102
  - !ruby/object:Gem::Version
109
- version: 0.0.7
103
+ version: 0.0.9
110
104
  type: :runtime
111
105
  prerelease: false
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
107
  requirements:
114
108
  - - "~>"
115
109
  - !ruby/object:Gem::Version
116
- version: 0.0.7
110
+ version: 0.0.9
117
111
  - !ruby/object:Gem::Dependency
118
- name: unparser
112
+ name: ice_nine
119
113
  requirement: !ruby/object:Gem::Requirement
120
114
  requirements:
121
115
  - - "~>"
122
116
  - !ruby/object:Gem::Version
123
- version: 0.2.5
117
+ version: 0.11.1
124
118
  type: :runtime
125
119
  prerelease: false
126
120
  version_requirements: !ruby/object:Gem::Requirement
127
121
  requirements:
128
122
  - - "~>"
129
123
  - !ruby/object:Gem::Version
130
- version: 0.2.5
124
+ version: 0.11.1
131
125
  - !ruby/object:Gem::Dependency
132
- name: ice_nine
126
+ name: memoizable
133
127
  requirement: !ruby/object:Gem::Requirement
134
128
  requirements:
135
129
  - - "~>"
136
130
  - !ruby/object:Gem::Version
137
- version: 0.11.1
131
+ version: 0.4.2
138
132
  type: :runtime
139
133
  prerelease: false
140
134
  version_requirements: !ruby/object:Gem::Requirement
141
135
  requirements:
142
136
  - - "~>"
143
137
  - !ruby/object:Gem::Version
144
- version: 0.11.1
138
+ version: 0.4.2
145
139
  - !ruby/object:Gem::Dependency
146
- name: adamantium
140
+ name: morpher
147
141
  requirement: !ruby/object:Gem::Requirement
148
142
  requirements:
149
143
  - - "~>"
150
144
  - !ruby/object:Gem::Version
151
- version: 0.2.0
145
+ version: 0.2.6
152
146
  type: :runtime
153
147
  prerelease: false
154
148
  version_requirements: !ruby/object:Gem::Requirement
155
149
  requirements:
156
150
  - - "~>"
157
151
  - !ruby/object:Gem::Version
158
- version: 0.2.0
152
+ version: 0.2.6
159
153
  - !ruby/object:Gem::Dependency
160
- name: memoizable
154
+ name: parallel
161
155
  requirement: !ruby/object:Gem::Requirement
162
156
  requirements:
163
157
  - - "~>"
164
158
  - !ruby/object:Gem::Version
165
- version: 0.4.2
159
+ version: '1.3'
166
160
  type: :runtime
167
161
  prerelease: false
168
162
  version_requirements: !ruby/object:Gem::Requirement
169
163
  requirements:
170
164
  - - "~>"
171
165
  - !ruby/object:Gem::Version
172
- version: 0.4.2
166
+ version: '1.3'
173
167
  - !ruby/object:Gem::Dependency
174
- name: equalizer
168
+ name: parser
175
169
  requirement: !ruby/object:Gem::Requirement
176
170
  requirements:
177
171
  - - "~>"
178
172
  - !ruby/object:Gem::Version
179
- version: 0.0.9
173
+ version: 2.5.1
180
174
  type: :runtime
181
175
  prerelease: false
182
176
  version_requirements: !ruby/object:Gem::Requirement
183
177
  requirements:
184
178
  - - "~>"
185
179
  - !ruby/object:Gem::Version
186
- version: 0.0.9
180
+ version: 2.5.1
187
181
  - !ruby/object:Gem::Dependency
188
- name: anima
182
+ name: procto
189
183
  requirement: !ruby/object:Gem::Requirement
190
184
  requirements:
191
185
  - - "~>"
192
186
  - !ruby/object:Gem::Version
193
- version: 0.3.0
187
+ version: 0.0.2
194
188
  type: :runtime
195
189
  prerelease: false
196
190
  version_requirements: !ruby/object:Gem::Requirement
197
191
  requirements:
198
192
  - - "~>"
199
193
  - !ruby/object:Gem::Version
200
- version: 0.3.0
194
+ version: 0.0.2
201
195
  - !ruby/object:Gem::Dependency
202
- name: concord
196
+ name: regexp_parser
203
197
  requirement: !ruby/object:Gem::Requirement
204
198
  requirements:
205
199
  - - "~>"
206
200
  - !ruby/object:Gem::Version
207
- version: 0.1.5
201
+ version: 0.4.9
208
202
  type: :runtime
209
203
  prerelease: false
210
204
  version_requirements: !ruby/object:Gem::Requirement
211
205
  requirements:
212
206
  - - "~>"
213
207
  - !ruby/object:Gem::Version
214
- version: 0.1.5
208
+ version: 0.4.9
215
209
  - !ruby/object:Gem::Dependency
216
- name: regexp_parser
210
+ name: unparser
217
211
  requirement: !ruby/object:Gem::Requirement
218
212
  requirements:
219
213
  - - "~>"
220
214
  - !ruby/object:Gem::Version
221
- version: 0.4.9
215
+ version: 0.2.5
222
216
  type: :runtime
223
217
  prerelease: false
224
218
  version_requirements: !ruby/object:Gem::Requirement
225
219
  requirements:
226
220
  - - "~>"
227
221
  - !ruby/object:Gem::Version
228
- version: 0.4.9
222
+ version: 0.2.5
229
223
  - !ruby/object:Gem::Dependency
230
- name: devtools
224
+ name: bundler
231
225
  requirement: !ruby/object:Gem::Requirement
232
226
  requirements:
233
227
  - - "~>"
234
228
  - !ruby/object:Gem::Version
235
- version: 0.1.12
229
+ version: '1.10'
236
230
  type: :development
237
231
  prerelease: false
238
232
  version_requirements: !ruby/object:Gem::Requirement
239
233
  requirements:
240
234
  - - "~>"
241
235
  - !ruby/object:Gem::Version
242
- version: 0.1.12
236
+ version: '1.10'
243
237
  - !ruby/object:Gem::Dependency
244
- name: bundler
238
+ name: devtools
245
239
  requirement: !ruby/object:Gem::Requirement
246
240
  requirements:
247
241
  - - "~>"
248
242
  - !ruby/object:Gem::Version
249
- version: '1.10'
243
+ version: 0.1.21
250
244
  type: :development
251
245
  prerelease: false
252
246
  version_requirements: !ruby/object:Gem::Requirement
253
247
  requirements:
254
248
  - - "~>"
255
249
  - !ruby/object:Gem::Version
256
- version: '1.10'
250
+ version: 0.1.21
257
251
  - !ruby/object:Gem::Dependency
258
252
  name: ffi
259
253
  requirement: !ruby/object:Gem::Requirement
@@ -550,7 +544,6 @@ files:
550
544
  - spec/shared/framework_integration_behavior.rb
551
545
  - spec/shared/method_matcher_behavior.rb
552
546
  - spec/spec_helper.rb
553
- - spec/support/compress_helper.rb
554
547
  - spec/support/corpus.rb
555
548
  - spec/support/fake_actor.rb
556
549
  - spec/support/file_system.rb
@@ -677,7 +670,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
677
670
  requirements:
678
671
  - - ">="
679
672
  - !ruby/object:Gem::Version
680
- version: '2.1'
673
+ version: '2.3'
681
674
  required_rubygems_version: !ruby/object:Gem::Requirement
682
675
  requirements:
683
676
  - - ">="
@@ -685,7 +678,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
685
678
  version: '0'
686
679
  requirements: []
687
680
  rubyforge_project:
688
- rubygems_version: 2.7.7
681
+ rubygems_version: 2.5.2
689
682
  signing_key:
690
683
  specification_version: 4
691
684
  summary: Mutation testing tool for ruby under MRI and Rubinius
@@ -1,9 +0,0 @@
1
- module CompressHelper
2
- def strip_indent(string)
3
- lines = string.lines
4
- match = /\A( *)/.match(lines.first)
5
- return string unless match
6
- whitespaces = match[1].to_s.length
7
- lines.map { |line| line[whitespaces..-1] }.join
8
- end
9
- end # CompressHelper