mutant 0.8.16 → 0.8.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +1 -1
- data/Changelog.md +6 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +66 -62
- data/Rakefile +2 -0
- data/bin/mutant +1 -0
- data/config/flay.yml +1 -1
- data/config/reek.yml +136 -136
- data/config/rubocop.yml +23 -1
- data/lib/mutant.rb +2 -0
- data/lib/mutant/actor.rb +2 -0
- data/lib/mutant/actor/env.rb +2 -0
- data/lib/mutant/actor/mailbox.rb +2 -0
- data/lib/mutant/actor/receiver.rb +2 -0
- data/lib/mutant/actor/sender.rb +2 -0
- data/lib/mutant/ast.rb +2 -0
- data/lib/mutant/ast/meta.rb +2 -0
- data/lib/mutant/ast/meta/const.rb +2 -0
- data/lib/mutant/ast/meta/optarg.rb +2 -0
- data/lib/mutant/ast/meta/resbody.rb +2 -0
- data/lib/mutant/ast/meta/restarg.rb +2 -0
- data/lib/mutant/ast/meta/send.rb +2 -0
- data/lib/mutant/ast/meta/symbol.rb +2 -0
- data/lib/mutant/ast/named_children.rb +2 -0
- data/lib/mutant/ast/node_predicates.rb +2 -0
- data/lib/mutant/ast/nodes.rb +2 -0
- data/lib/mutant/ast/regexp.rb +2 -0
- data/lib/mutant/ast/regexp/transformer.rb +2 -0
- data/lib/mutant/ast/regexp/transformer/alternative.rb +2 -0
- data/lib/mutant/ast/regexp/transformer/character_set.rb +2 -0
- data/lib/mutant/ast/regexp/transformer/direct.rb +2 -0
- data/lib/mutant/ast/regexp/transformer/options_group.rb +2 -0
- data/lib/mutant/ast/regexp/transformer/quantifier.rb +3 -1
- data/lib/mutant/ast/regexp/transformer/recursive.rb +2 -0
- data/lib/mutant/ast/regexp/transformer/root.rb +2 -0
- data/lib/mutant/ast/regexp/transformer/text.rb +2 -0
- data/lib/mutant/ast/sexp.rb +2 -0
- data/lib/mutant/ast/types.rb +2 -0
- data/lib/mutant/cli.rb +2 -0
- data/lib/mutant/color.rb +3 -1
- data/lib/mutant/config.rb +2 -0
- data/lib/mutant/context.rb +2 -0
- data/lib/mutant/diff.rb +4 -2
- data/lib/mutant/env.rb +2 -0
- data/lib/mutant/env/bootstrap.rb +2 -0
- data/lib/mutant/expression.rb +2 -0
- data/lib/mutant/expression/method.rb +2 -0
- data/lib/mutant/expression/methods.rb +2 -0
- data/lib/mutant/expression/namespace.rb +2 -0
- data/lib/mutant/expression/parser.rb +2 -0
- data/lib/mutant/integration.rb +2 -0
- data/lib/mutant/isolation.rb +2 -0
- data/lib/mutant/isolation/fork.rb +2 -0
- data/lib/mutant/isolation/none.rb +2 -0
- data/lib/mutant/loader.rb +2 -0
- data/lib/mutant/matcher.rb +2 -0
- data/lib/mutant/matcher/chain.rb +2 -0
- data/lib/mutant/matcher/compiler.rb +2 -0
- data/lib/mutant/matcher/config.rb +2 -0
- data/lib/mutant/matcher/filter.rb +2 -0
- data/lib/mutant/matcher/method.rb +2 -0
- data/lib/mutant/matcher/method/instance.rb +2 -0
- data/lib/mutant/matcher/method/singleton.rb +2 -0
- data/lib/mutant/matcher/methods.rb +2 -0
- data/lib/mutant/matcher/namespace.rb +2 -0
- data/lib/mutant/matcher/null.rb +2 -0
- data/lib/mutant/matcher/scope.rb +2 -0
- data/lib/mutant/matcher/static.rb +2 -0
- data/lib/mutant/meta.rb +4 -0
- data/lib/mutant/meta/example.rb +2 -0
- data/lib/mutant/meta/example/dsl.rb +2 -0
- data/lib/mutant/meta/example/verification.rb +2 -0
- data/lib/mutant/mutation.rb +2 -0
- data/lib/mutant/mutator.rb +2 -0
- data/lib/mutant/mutator/node.rb +4 -2
- data/lib/mutant/mutator/node/and_asgn.rb +2 -0
- data/lib/mutant/mutator/node/argument.rb +2 -0
- data/lib/mutant/mutator/node/arguments.rb +2 -0
- data/lib/mutant/mutator/node/begin.rb +2 -0
- data/lib/mutant/mutator/node/binary.rb +2 -0
- data/lib/mutant/mutator/node/block.rb +2 -0
- data/lib/mutant/mutator/node/break.rb +2 -0
- data/lib/mutant/mutator/node/case.rb +2 -0
- data/lib/mutant/mutator/node/class.rb +2 -0
- data/lib/mutant/mutator/node/conditional_loop.rb +2 -0
- data/lib/mutant/mutator/node/const.rb +2 -0
- data/lib/mutant/mutator/node/define.rb +2 -0
- data/lib/mutant/mutator/node/defined.rb +2 -0
- data/lib/mutant/mutator/node/dstr.rb +2 -0
- data/lib/mutant/mutator/node/dsym.rb +2 -0
- data/lib/mutant/mutator/node/generic.rb +2 -0
- data/lib/mutant/mutator/node/if.rb +2 -0
- data/lib/mutant/mutator/node/kwbegin.rb +2 -0
- data/lib/mutant/mutator/node/literal.rb +2 -0
- data/lib/mutant/mutator/node/literal/array.rb +2 -0
- data/lib/mutant/mutator/node/literal/boolean.rb +2 -0
- data/lib/mutant/mutator/node/literal/float.rb +2 -0
- data/lib/mutant/mutator/node/literal/hash.rb +2 -0
- data/lib/mutant/mutator/node/literal/integer.rb +2 -0
- data/lib/mutant/mutator/node/literal/nil.rb +2 -0
- data/lib/mutant/mutator/node/literal/range.rb +2 -0
- data/lib/mutant/mutator/node/literal/regex.rb +2 -0
- data/lib/mutant/mutator/node/literal/string.rb +2 -0
- data/lib/mutant/mutator/node/literal/symbol.rb +2 -0
- data/lib/mutant/mutator/node/masgn.rb +2 -0
- data/lib/mutant/mutator/node/match_current_line.rb +2 -0
- data/lib/mutant/mutator/node/mlhs.rb +2 -0
- data/lib/mutant/mutator/node/named_value/access.rb +2 -0
- data/lib/mutant/mutator/node/named_value/constant_assignment.rb +2 -0
- data/lib/mutant/mutator/node/named_value/variable_assignment.rb +2 -0
- data/lib/mutant/mutator/node/next.rb +2 -0
- data/lib/mutant/mutator/node/noop.rb +3 -1
- data/lib/mutant/mutator/node/nthref.rb +2 -0
- data/lib/mutant/mutator/node/op_asgn.rb +2 -0
- data/lib/mutant/mutator/node/or_asgn.rb +2 -0
- data/lib/mutant/mutator/node/regexp.rb +2 -0
- data/lib/mutant/mutator/node/regexp/alternation_meta.rb +2 -0
- data/lib/mutant/mutator/node/regexp/capture_group.rb +2 -0
- data/lib/mutant/mutator/node/regexp/character_type.rb +2 -0
- data/lib/mutant/mutator/node/regexp/end_of_line_anchor.rb +2 -0
- data/lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb +2 -0
- data/lib/mutant/mutator/node/regexp/greedy_zero_or_more.rb +2 -0
- data/lib/mutant/mutator/node/regopt.rb +2 -0
- data/lib/mutant/mutator/node/resbody.rb +2 -0
- data/lib/mutant/mutator/node/rescue.rb +2 -0
- data/lib/mutant/mutator/node/return.rb +2 -0
- data/lib/mutant/mutator/node/send.rb +2 -0
- data/lib/mutant/mutator/node/send/attribute_assignment.rb +2 -0
- data/lib/mutant/mutator/node/send/binary.rb +2 -0
- data/lib/mutant/mutator/node/send/conditional.rb +2 -0
- data/lib/mutant/mutator/node/send/index.rb +2 -0
- data/lib/mutant/mutator/node/splat.rb +2 -0
- data/lib/mutant/mutator/node/super.rb +2 -0
- data/lib/mutant/mutator/node/when.rb +2 -0
- data/lib/mutant/mutator/node/yield.rb +2 -0
- data/lib/mutant/mutator/node/zsuper.rb +2 -0
- data/lib/mutant/mutator/util.rb +2 -0
- data/lib/mutant/mutator/util/array.rb +2 -0
- data/lib/mutant/mutator/util/symbol.rb +2 -0
- data/lib/mutant/parallel.rb +2 -0
- data/lib/mutant/parallel/master.rb +2 -0
- data/lib/mutant/parallel/source.rb +2 -0
- data/lib/mutant/parallel/worker.rb +2 -0
- data/lib/mutant/parser.rb +2 -0
- data/lib/mutant/registry.rb +2 -0
- data/lib/mutant/reporter.rb +2 -0
- data/lib/mutant/reporter/cli.rb +2 -0
- data/lib/mutant/reporter/cli/format.rb +2 -0
- data/lib/mutant/reporter/cli/printer.rb +2 -0
- data/lib/mutant/reporter/cli/printer/config.rb +2 -0
- data/lib/mutant/reporter/cli/printer/env_progress.rb +2 -1
- data/lib/mutant/reporter/cli/printer/env_result.rb +2 -0
- data/lib/mutant/reporter/cli/printer/mutation_progress_result.rb +2 -0
- data/lib/mutant/reporter/cli/printer/mutation_result.rb +2 -0
- data/lib/mutant/reporter/cli/printer/status.rb +2 -0
- data/lib/mutant/reporter/cli/printer/status_progressive.rb +2 -0
- data/lib/mutant/reporter/cli/printer/subject_progress.rb +2 -0
- data/lib/mutant/reporter/cli/printer/subject_result.rb +2 -0
- data/lib/mutant/reporter/cli/printer/test_result.rb +2 -0
- data/lib/mutant/reporter/cli/tput.rb +2 -0
- data/lib/mutant/reporter/null.rb +2 -0
- data/lib/mutant/reporter/sequence.rb +2 -0
- data/lib/mutant/repository.rb +2 -0
- data/lib/mutant/require_highjack.rb +2 -0
- data/lib/mutant/result.rb +2 -0
- data/lib/mutant/runner.rb +2 -0
- data/lib/mutant/runner/sink.rb +2 -0
- data/lib/mutant/scope.rb +2 -0
- data/lib/mutant/selector.rb +2 -0
- data/lib/mutant/selector/expression.rb +2 -0
- data/lib/mutant/subject.rb +2 -0
- data/lib/mutant/subject/method.rb +2 -0
- data/lib/mutant/subject/method/instance.rb +2 -0
- data/lib/mutant/subject/method/singleton.rb +2 -0
- data/lib/mutant/test.rb +2 -0
- data/lib/mutant/util.rb +2 -0
- data/lib/mutant/version.rb +3 -1
- data/lib/mutant/warning_filter.rb +2 -0
- data/lib/mutant/zombifier.rb +2 -0
- data/meta/and.rb +2 -0
- data/meta/and_asgn.rb +2 -0
- data/meta/array.rb +2 -0
- data/meta/begin.rb +2 -0
- data/meta/block.rb +2 -0
- data/meta/block_pass.rb +2 -0
- data/meta/blockarg.rb +2 -0
- data/meta/break.rb +2 -0
- data/meta/case.rb +2 -0
- data/meta/casgn.rb +2 -0
- data/meta/cbase.rb +2 -0
- data/meta/class.rb +2 -0
- data/meta/const.rb +2 -0
- data/meta/csend.rb +2 -0
- data/meta/cvar.rb +2 -0
- data/meta/cvasgn.rb +2 -0
- data/meta/date.rb +2 -0
- data/meta/def.rb +2 -0
- data/meta/defined.rb +2 -0
- data/meta/dstr.rb +2 -0
- data/meta/dsym.rb +2 -0
- data/meta/ensure.rb +2 -0
- data/meta/false.rb +2 -0
- data/meta/float.rb +2 -0
- data/meta/gvar.rb +2 -0
- data/meta/gvasgn.rb +2 -0
- data/meta/hash.rb +2 -0
- data/meta/if.rb +2 -0
- data/meta/int.rb +2 -0
- data/meta/ivar.rb +2 -0
- data/meta/ivasgn.rb +2 -0
- data/meta/kwarg.rb +2 -0
- data/meta/kwbegin.rb +2 -0
- data/meta/kwoptarg.rb +2 -0
- data/meta/lvar.rb +2 -0
- data/meta/lvasgn.rb +2 -0
- data/meta/masgn.rb +2 -0
- data/meta/match_current_line.rb +2 -0
- data/meta/next.rb +2 -0
- data/meta/nil.rb +2 -0
- data/meta/nthref.rb +2 -0
- data/meta/op_assgn.rb +2 -0
- data/meta/or.rb +2 -0
- data/meta/or_asgn.rb +2 -0
- data/meta/range.rb +2 -0
- data/meta/redo.rb +2 -0
- data/meta/regexp.rb +2 -0
- data/meta/regexp/character_types.rb +2 -0
- data/meta/regexp/regexp_alternation_meta.rb +2 -0
- data/meta/regexp/regexp_bol_anchor.rb +2 -0
- data/meta/regexp/regexp_bos_anchor.rb +2 -0
- data/meta/regexp/regexp_capture_group.rb +2 -0
- data/meta/regexp/regexp_eol_anchor.rb +2 -0
- data/meta/regexp/regexp_eos_anchor.rb +2 -0
- data/meta/regexp/regexp_eos_ob_eol_anchor.rb +2 -0
- data/meta/regexp/regexp_greedy_zero_or_more.rb +2 -0
- data/meta/regexp/regexp_root_expression.rb +2 -0
- data/meta/regopt.rb +2 -0
- data/meta/rescue.rb +2 -0
- data/meta/restarg.rb +2 -0
- data/meta/return.rb +2 -0
- data/meta/self.rb +2 -0
- data/meta/send.rb +2 -0
- data/meta/str.rb +2 -0
- data/meta/super.rb +2 -0
- data/meta/sym.rb +2 -0
- data/meta/true.rb +2 -0
- data/meta/until.rb +2 -0
- data/meta/while.rb +2 -0
- data/meta/yield.rb +2 -0
- data/mutant-rspec.gemspec +3 -1
- data/mutant.gemspec +15 -13
- data/spec/integration/mutant/corpus_spec.rb +2 -0
- data/spec/integration/mutant/isolation/fork_spec.rb +3 -0
- data/spec/integration/mutant/null_spec.rb +2 -0
- data/spec/integration/mutant/rspec_spec.rb +2 -0
- data/spec/integration/mutant/test_mutator_handles_types_spec.rb +2 -0
- data/spec/shared/framework_integration_behavior.rb +2 -0
- data/spec/shared/method_matcher_behavior.rb +2 -0
- data/spec/spec_helper.rb +2 -1
- data/spec/support/corpus.rb +2 -0
- data/spec/support/fake_actor.rb +3 -1
- data/spec/support/file_system.rb +2 -0
- data/spec/support/ice_nine_config.rb +2 -0
- data/spec/support/rb_bug.rb +2 -0
- data/spec/support/ruby_vm.rb +3 -0
- data/spec/support/shared_context.rb +3 -1
- data/spec/support/test_app.rb +3 -1
- data/spec/support/warning.rb +2 -0
- data/spec/support/warnings.yml +1 -1
- data/spec/support/xspec.rb +4 -2
- data/spec/unit/mutant/actor/binding_spec.rb +2 -0
- data/spec/unit/mutant/actor/env_spec.rb +2 -0
- data/spec/unit/mutant/actor/mailbox_spec.rb +2 -0
- data/spec/unit/mutant/actor/message_spec.rb +2 -0
- data/spec/unit/mutant/actor/receiver_spec.rb +2 -0
- data/spec/unit/mutant/actor/sender_spec.rb +2 -0
- data/spec/unit/mutant/ast/meta/optarg_spec.rb +2 -0
- data/spec/unit/mutant/ast/meta/send/proc_predicate_spec.rb +2 -0
- data/spec/unit/mutant/ast/meta/send/receiver_possible_top_level_const_predicate_spec.rb +2 -0
- data/spec/unit/mutant/ast/meta/send_spec.rb +2 -0
- data/spec/unit/mutant/ast/named_children_spec.rb +2 -0
- data/spec/unit/mutant/ast/regexp/parse_spec.rb +2 -0
- data/spec/unit/mutant/ast/regexp/supported_predicate_spec.rb +2 -0
- data/spec/unit/mutant/ast/regexp/transformer/lookup_table/table_spec.rb +2 -0
- data/spec/unit/mutant/ast/regexp/transformer/lookup_table_spec.rb +2 -0
- data/spec/unit/mutant/ast/regexp/transformer_spec.rb +2 -0
- data/spec/unit/mutant/ast/regexp_spec.rb +2 -0
- data/spec/unit/mutant/ast/sexp_spec.rb +2 -0
- data/spec/unit/mutant/ast_spec.rb +2 -0
- data/spec/unit/mutant/cli_spec.rb +17 -15
- data/spec/unit/mutant/context_spec.rb +2 -0
- data/spec/unit/mutant/diff_spec.rb +8 -6
- data/spec/unit/mutant/env/bootstrap_spec.rb +2 -0
- data/spec/unit/mutant/env_spec.rb +2 -0
- data/spec/unit/mutant/expression/method_spec.rb +2 -0
- data/spec/unit/mutant/expression/methods_spec.rb +2 -0
- data/spec/unit/mutant/expression/namespace/exact_spec.rb +2 -0
- data/spec/unit/mutant/expression/namespace/recursive_spec.rb +2 -0
- data/spec/unit/mutant/expression/parser_spec.rb +2 -0
- data/spec/unit/mutant/expression_spec.rb +2 -0
- data/spec/unit/mutant/integration/rspec_spec.rb +2 -0
- data/spec/unit/mutant/integration_spec.rb +2 -0
- data/spec/unit/mutant/isolation/fork_spec.rb +2 -0
- data/spec/unit/mutant/isolation/none_spec.rb +2 -0
- data/spec/unit/mutant/loader_spec.rb +2 -0
- data/spec/unit/mutant/matcher/chain_spec.rb +2 -0
- data/spec/unit/mutant/matcher/compiler/subject_prefix_spec.rb +2 -0
- data/spec/unit/mutant/matcher/compiler_spec.rb +2 -0
- data/spec/unit/mutant/matcher/config_spec.rb +2 -0
- data/spec/unit/mutant/matcher/filter_spec.rb +2 -0
- data/spec/unit/mutant/matcher/method/instance_spec.rb +2 -0
- data/spec/unit/mutant/matcher/method/singleton_spec.rb +2 -0
- data/spec/unit/mutant/matcher/methods/instance_spec.rb +2 -0
- data/spec/unit/mutant/matcher/methods/singleton_spec.rb +2 -0
- data/spec/unit/mutant/matcher/namespace_spec.rb +2 -0
- data/spec/unit/mutant/matcher/null_spec.rb +2 -0
- data/spec/unit/mutant/matcher/scope_spec.rb +2 -0
- data/spec/unit/mutant/matcher/static_spec.rb +2 -0
- data/spec/unit/mutant/meta/example/dsl_spec.rb +2 -0
- data/spec/unit/mutant/meta/example/verification_spec.rb +5 -3
- data/spec/unit/mutant/meta/example_spec.rb +2 -0
- data/spec/unit/mutant/mutation_spec.rb +2 -0
- data/spec/unit/mutant/mutator/node_spec.rb +2 -0
- data/spec/unit/mutant/mutator_spec.rb +2 -0
- data/spec/unit/mutant/parallel/driver_spec.rb +2 -0
- data/spec/unit/mutant/parallel/master_spec.rb +2 -0
- data/spec/unit/mutant/parallel/source/array_spec.rb +2 -0
- data/spec/unit/mutant/parallel/worker_spec.rb +2 -0
- data/spec/unit/mutant/parallel_spec.rb +2 -0
- data/spec/unit/mutant/parser_spec.rb +2 -0
- data/spec/unit/mutant/registry_spec.rb +2 -0
- data/spec/unit/mutant/reporter/cli/printer/config_spec.rb +4 -2
- data/spec/unit/mutant/reporter/cli/printer/env_progress_spec.rb +5 -3
- data/spec/unit/mutant/reporter/cli/printer/env_result_spec.rb +3 -1
- data/spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb +2 -0
- data/spec/unit/mutant/reporter/cli/printer/mutation_result_spec.rb +6 -4
- data/spec/unit/mutant/reporter/cli/printer/status_progressive_spec.rb +6 -4
- data/spec/unit/mutant/reporter/cli/printer/status_spec.rb +6 -4
- data/spec/unit/mutant/reporter/cli/printer/subject_progress_spec.rb +5 -3
- data/spec/unit/mutant/reporter/cli/printer/subject_result_spec.rb +5 -3
- data/spec/unit/mutant/reporter/cli/printer/test_result_spec.rb +3 -1
- data/spec/unit/mutant/reporter/cli/printer_spec.rb +6 -4
- data/spec/unit/mutant/reporter/cli/tput_spec.rb +2 -0
- data/spec/unit/mutant/reporter/cli_spec.rb +7 -5
- data/spec/unit/mutant/reporter/null_spec.rb +2 -0
- data/spec/unit/mutant/reporter/sequence_spec.rb +2 -0
- data/spec/unit/mutant/repository/diff_spec.rb +3 -1
- data/spec/unit/mutant/repository/subject_filter_spec.rb +2 -0
- data/spec/unit/mutant/require_highjack_spec.rb +2 -0
- data/spec/unit/mutant/result/class_methods_spec.rb +2 -0
- data/spec/unit/mutant/result/env_spec.rb +2 -0
- data/spec/unit/mutant/result/mutation_spec.rb +2 -0
- data/spec/unit/mutant/result/subject_spec.rb +2 -0
- data/spec/unit/mutant/result_spec.rb +2 -0
- data/spec/unit/mutant/runner/sink_spec.rb +2 -0
- data/spec/unit/mutant/runner_spec.rb +2 -0
- data/spec/unit/mutant/selector/expression_spec.rb +2 -0
- data/spec/unit/mutant/subject/method/instance_spec.rb +2 -0
- data/spec/unit/mutant/subject/method/singleton_spec.rb +2 -0
- data/spec/unit/mutant/subject_spec.rb +2 -0
- data/spec/unit/mutant/util/one_spec.rb +2 -0
- data/spec/unit/mutant/warning_filter_spec.rb +3 -1
- data/spec/unit/mutant/zombifier_spec.rb +2 -0
- data/spec/unit/mutant_spec.rb +2 -0
- metadata +57 -64
- data/spec/support/compress_helper.rb +0 -9
data/meta/return.rb
CHANGED
data/meta/self.rb
CHANGED
data/meta/send.rb
CHANGED
data/meta/str.rb
CHANGED
data/meta/super.rb
CHANGED
data/meta/sym.rb
CHANGED
data/meta/true.rb
CHANGED
data/meta/until.rb
CHANGED
data/meta/while.rb
CHANGED
data/meta/yield.rb
CHANGED
data/mutant-rspec.gemspec
CHANGED
data/mutant.gemspec
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require File.expand_path('lib/mutant/version', __dir__)
|
2
4
|
|
3
5
|
Gem::Specification.new do |gem|
|
4
6
|
gem.name = 'mutant'
|
@@ -19,25 +21,25 @@ Gem::Specification.new do |gem|
|
|
19
21
|
gem.extra_rdoc_files = %w[LICENSE]
|
20
22
|
gem.executables = %w[mutant]
|
21
23
|
|
22
|
-
gem.required_ruby_version = '>= 2.
|
24
|
+
gem.required_ruby_version = '>= 2.3'
|
23
25
|
|
24
|
-
gem.add_runtime_dependency('parser', '>= 2.3.1.4', '< 2.5')
|
25
|
-
gem.add_runtime_dependency('ast', '~> 2.2')
|
26
|
-
gem.add_runtime_dependency('diff-lcs', '~> 1.3')
|
27
|
-
gem.add_runtime_dependency('parallel', '~> 1.3')
|
28
|
-
gem.add_runtime_dependency('morpher', '~> 0.2.6')
|
29
|
-
gem.add_runtime_dependency('procto', '~> 0.0.2')
|
30
26
|
gem.add_runtime_dependency('abstract_type', '~> 0.0.7')
|
31
|
-
gem.add_runtime_dependency('unparser', '~> 0.2.5')
|
32
|
-
gem.add_runtime_dependency('ice_nine', '~> 0.11.1')
|
33
27
|
gem.add_runtime_dependency('adamantium', '~> 0.2.0')
|
34
|
-
gem.add_runtime_dependency('memoizable', '~> 0.4.2')
|
35
|
-
gem.add_runtime_dependency('equalizer', '~> 0.0.9')
|
36
28
|
gem.add_runtime_dependency('anima', '~> 0.3.0')
|
29
|
+
gem.add_runtime_dependency('ast', '~> 2.2')
|
37
30
|
gem.add_runtime_dependency('concord', '~> 0.1.5')
|
31
|
+
gem.add_runtime_dependency('diff-lcs', '~> 1.3')
|
32
|
+
gem.add_runtime_dependency('equalizer', '~> 0.0.9')
|
33
|
+
gem.add_runtime_dependency('ice_nine', '~> 0.11.1')
|
34
|
+
gem.add_runtime_dependency('memoizable', '~> 0.4.2')
|
35
|
+
gem.add_runtime_dependency('morpher', '~> 0.2.6')
|
36
|
+
gem.add_runtime_dependency('parallel', '~> 1.3')
|
37
|
+
gem.add_runtime_dependency('parser', '~> 2.5.1')
|
38
|
+
gem.add_runtime_dependency('procto', '~> 0.0.2')
|
38
39
|
gem.add_runtime_dependency('regexp_parser', '~> 0.4.9')
|
40
|
+
gem.add_runtime_dependency('unparser', '~> 0.2.5')
|
39
41
|
|
40
|
-
gem.add_development_dependency('devtools', '~> 0.1.12')
|
41
42
|
gem.add_development_dependency('bundler', '~> 1.10')
|
43
|
+
gem.add_development_dependency('devtools', '~> 0.1.21')
|
42
44
|
gem.add_development_dependency('ffi', '~> 1.9.6')
|
43
45
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
if ENV['COVERAGE'] == 'true'
|
2
4
|
require 'simplecov'
|
3
5
|
|
@@ -58,7 +60,6 @@ end # MessageHelper
|
|
58
60
|
|
59
61
|
RSpec.configure do |config|
|
60
62
|
config.extend(SharedContext)
|
61
|
-
config.include(CompressHelper)
|
62
63
|
config.include(MessageHelper)
|
63
64
|
config.include(ParserHelper)
|
64
65
|
config.include(Mutant::AST::Sexp)
|
data/spec/support/corpus.rb
CHANGED
data/spec/support/fake_actor.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'mutant/actor'
|
2
4
|
|
3
5
|
# A fake actor used from specs
|
@@ -14,7 +16,7 @@ module FakeActor
|
|
14
16
|
unless eql?(other)
|
15
17
|
fail "Got:\n#{other.inspect}\nExpected:\n#{inspect}"
|
16
18
|
end
|
17
|
-
block
|
19
|
+
block&.call(other.message)
|
18
20
|
end
|
19
21
|
end # Expectation
|
20
22
|
|
data/spec/support/file_system.rb
CHANGED
data/spec/support/rb_bug.rb
CHANGED
data/spec/support/ruby_vm.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module MutantSpec
|
2
4
|
# Not a real VM, just kidding. It connects the require / eval triggers
|
3
5
|
# require semantics Zombifier relies on in a way we can avoid having to
|
@@ -24,6 +26,7 @@ module MutantSpec
|
|
24
26
|
super(DEFAULTS.merge(attributes))
|
25
27
|
end
|
26
28
|
|
29
|
+
# rubocop:disable Naming/UncommunicativeMethodParamName
|
27
30
|
def handle(vm, observation)
|
28
31
|
unless match?(observation)
|
29
32
|
fail "Unexpected event observation: #{observation.inspect}, expected #{inspect}"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# rubocop:disable ModuleLength
|
2
4
|
module SharedContext
|
3
5
|
# Prepend an anonymous module with the new `with` method
|
@@ -27,7 +29,7 @@ module SharedContext
|
|
27
29
|
it 'writes expected report to output' do
|
28
30
|
described_class.call(output, reportable)
|
29
31
|
output.rewind
|
30
|
-
expect(output.read).to eql(
|
32
|
+
expect(output.read).to eql(expected_content)
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
data/spec/support/test_app.rb
CHANGED
data/spec/support/warning.rb
CHANGED
data/spec/support/warnings.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
- "lib/mutant/subject/method/instance.rb:9: warning: undefining `initialize' may cause serious problems"
|
3
3
|
- 'lib/parallel.rb:222: warning: shadowing outer local variable - args'
|
4
4
|
- 'lib/parallel.rb:227: warning: shadowing outer local variable - args'
|
5
|
-
- 'lib/parser/lexer.rb:
|
5
|
+
- 'lib/parser/lexer.rb:10836: warning: assigned but unused variable - testEof'
|
6
6
|
- 'lib/regexp_parser/scanner.rb:1675: warning: assigned but unused variable - testEof'
|
7
7
|
- 'lib/regexp_parser/scanner.rb:1689: warning: assigned but unused variable - testEof'
|
8
8
|
- 'lib/regexp_parser/scanner.rb:1692: warning: assigned but unused variable - testEof'
|
data/spec/support/xspec.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module XSpec
|
2
4
|
class MessageReaction
|
3
5
|
include Concord.new(:event_list)
|
@@ -26,11 +28,11 @@ module XSpec
|
|
26
28
|
|
27
29
|
private
|
28
30
|
|
29
|
-
def return(
|
31
|
+
def return(_event, value)
|
30
32
|
value
|
31
33
|
end
|
32
34
|
|
33
|
-
def exception(
|
35
|
+
def exception(_event, exception)
|
34
36
|
fail exception
|
35
37
|
end
|
36
38
|
|