Upgrade parser dependency

This commit is contained in:
Markus Schirp 2018-09-12 13:15:43 +00:00
parent 633cf6a18b
commit d6a2195744
362 changed files with 593 additions and 206 deletions

View file

@ -2,6 +2,7 @@
* Drop support for Ruby < 2.3 * Drop support for Ruby < 2.3
* Use frozen string literals globally * Use frozen string literals globally
* Update to parser ~> 2.5
# v0.8.16 2018-08-03 # v0.8.16 2018-08-03

View file

@ -1,6 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
source 'https://rubygems.org' source 'https://rubygems.org'
gemspec name: 'mutant' gemspec name: 'mutant'
eval_gemfile File.expand_path('../Gemfile.shared', __FILE__) eval_gemfile File.expand_path('Gemfile.shared', __dir__)

View file

@ -13,7 +13,7 @@ PATH
memoizable (~> 0.4.2) memoizable (~> 0.4.2)
morpher (~> 0.2.6) morpher (~> 0.2.6)
parallel (~> 1.3) parallel (~> 1.3)
parser (>= 2.3.1.4, < 2.5) parser (~> 2.5.1)
procto (~> 0.0.2) procto (~> 0.0.2)
regexp_parser (~> 0.4.9) regexp_parser (~> 0.4.9)
unparser (~> 0.2.5) unparser (~> 0.2.5)
@ -32,12 +32,12 @@ GEM
abstract_type (~> 0.0.7) abstract_type (~> 0.0.7)
adamantium (~> 0.2) adamantium (~> 0.2)
equalizer (~> 0.0.11) equalizer (~> 0.0.11)
ast (2.3.0) ast (2.4.0)
axiom-types (0.1.1) axiom-types (0.1.1)
descendants_tracker (~> 0.0.4) descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0) ice_nine (~> 0.11.0)
thread_safe (~> 0.3, >= 0.3.1) thread_safe (~> 0.3, >= 0.3.1)
codeclimate-engine-rb (0.4.0) codeclimate-engine-rb (0.4.1)
virtus (~> 1.0) virtus (~> 1.0)
coercible (1.0.0) coercible (1.0.0)
descendants_tracker (~> 0.0.1) descendants_tracker (~> 0.0.1)
@ -46,41 +46,43 @@ GEM
equalizer (~> 0.0.9) equalizer (~> 0.0.9)
descendants_tracker (0.0.4) descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1) thread_safe (~> 0.3, >= 0.3.1)
devtools (0.1.18) devtools (0.1.21)
abstract_type (~> 0.0.7) abstract_type (~> 0.0.7)
adamantium (~> 0.2.0) adamantium (~> 0.2.0)
anima (~> 0.3.0) anima (~> 0.3.0)
concord (~> 0.1.5) concord (~> 0.1.5)
flay (~> 2.8.1) flay (~> 2.10.0)
flog (~> 4.4.0) flog (~> 4.6.1)
mutant (~> 0.8.11) mutant (~> 0.8.16)
mutant-rspec (~> 0.8.11) mutant-rspec (~> 0.8.16)
procto (~> 0.0.3) procto (~> 0.0.3)
rake (~> 12.0.0) rake (~> 12.3.0)
reek (~> 4.6.0) reek (~> 5.0.2)
rspec (~> 3.5.0) rspec (~> 3.8.0)
rspec-core (~> 3.5.4) rspec-core (~> 3.8.0)
rspec-its (~> 1.2.0) rspec-its (~> 1.2.0)
rubocop (~> 0.47.0) rubocop (~> 0.59.0)
simplecov (~> 0.14.0) simplecov (~> 0.16.1)
yard (~> 0.9.1) yard (~> 0.9.16)
yardstick (~> 0.9.9) yardstick (~> 0.9.9)
diff-lcs (1.3) diff-lcs (1.3)
docile (1.1.5) docile (1.3.1)
equalizer (0.0.11) equalizer (0.0.11)
erubis (2.7.0) erubis (2.7.0)
ffi (1.9.18) ffi (1.9.25)
flay (2.8.1) flay (2.10.0)
erubis (~> 2.7.0) erubis (~> 2.7.0)
path_expander (~> 1.0) path_expander (~> 1.0)
ruby_parser (~> 3.0) ruby_parser (~> 3.0)
sexp_processor (~> 4.0) sexp_processor (~> 4.0)
flog (4.4.1) flog (4.6.2)
path_expander (~> 1.0) path_expander (~> 1.0)
ruby_parser (~> 3.1, > 3.1.0) ruby_parser (~> 3.1, > 3.1.0)
sexp_processor (~> 4.4) sexp_processor (~> 4.8)
ice_nine (0.11.2) ice_nine (0.11.2)
jaro_winkler (1.5.1)
json (2.1.0) json (2.1.0)
kwalify (0.7.2)
memoizable (0.4.2) memoizable (0.4.2)
thread_safe (~> 0.3, >= 0.3.1) thread_safe (~> 0.3, >= 0.3.1)
morpher (0.2.6) morpher (0.2.6)
@ -93,52 +95,54 @@ GEM
ice_nine (~> 0.11.0) ice_nine (~> 0.11.0)
procto (~> 0.0.2) procto (~> 0.0.2)
parallel (1.12.1) parallel (1.12.1)
parser (2.4.0.0) parser (2.5.1.2)
ast (~> 2.2) ast (~> 2.4.0)
path_expander (1.0.2) path_expander (1.0.3)
powerpack (0.1.1) powerpack (0.1.2)
procto (0.0.3) procto (0.0.3)
rainbow (2.2.2) rainbow (3.0.0)
rake rake (12.3.1)
rake (12.0.0) reek (5.0.2)
reek (4.6.2)
codeclimate-engine-rb (~> 0.4.0) codeclimate-engine-rb (~> 0.4.0)
parser (>= 2.4.0.0, < 2.5) kwalify (~> 0.7.0)
rainbow (~> 2.0) parser (>= 2.5.0.0, < 2.6, != 2.5.1.1)
rainbow (>= 2.0, < 4.0)
regexp_parser (0.4.13) regexp_parser (0.4.13)
rspec (3.5.0) rspec (3.8.0)
rspec-core (~> 3.5.0) rspec-core (~> 3.8.0)
rspec-expectations (~> 3.5.0) rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.5.0) rspec-mocks (~> 3.8.0)
rspec-core (3.5.4) rspec-core (3.8.0)
rspec-support (~> 3.5.0) rspec-support (~> 3.8.0)
rspec-expectations (3.5.0) rspec-expectations (3.8.1)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0) rspec-support (~> 3.8.0)
rspec-its (1.2.0) rspec-its (1.2.0)
rspec-core (>= 3.0.0) rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0) rspec-expectations (>= 3.0.0)
rspec-mocks (3.5.0) rspec-mocks (3.8.0)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0) rspec-support (~> 3.8.0)
rspec-support (3.5.0) rspec-support (3.8.0)
rubocop (0.47.1) rubocop (0.59.0)
parser (>= 2.3.3.1, < 3.0) jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1)
powerpack (~> 0.1) powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0) rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1) unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.8.1) ruby-progressbar (1.10.0)
ruby_parser (3.9.0) ruby_parser (3.11.0)
sexp_processor (~> 4.1) sexp_processor (~> 4.9)
sexp_processor (4.9.0) sexp_processor (4.11.0)
simplecov (0.14.1) simplecov (0.16.1)
docile (~> 1.1.0) docile (~> 1.1)
json (>= 1.8, < 3) json (>= 1.8, < 3)
simplecov-html (~> 0.10.0) simplecov-html (~> 0.10.0)
simplecov-html (0.10.1) simplecov-html (0.10.2)
thread_safe (0.3.6) thread_safe (0.3.6)
unicode-display_width (1.3.0) unicode-display_width (1.4.0)
unparser (0.2.8) unparser (0.2.8)
abstract_type (~> 0.0.7) abstract_type (~> 0.0.7)
adamantium (~> 0.2.0) adamantium (~> 0.2.0)
@ -152,7 +156,7 @@ GEM
coercible (~> 1.0) coercible (~> 1.0)
descendants_tracker (~> 0.0, >= 0.0.3) descendants_tracker (~> 0.0, >= 0.0.3)
equalizer (~> 0.0, >= 0.0.9) equalizer (~> 0.0, >= 0.0.9)
yard (0.9.9) yard (0.9.16)
yardstick (0.9.9) yardstick (0.9.9)
yard (~> 0.8, >= 0.8.7.2) yard (~> 0.8, >= 0.8.7.2)
@ -161,7 +165,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
bundler (~> 1.10) bundler (~> 1.10)
devtools (~> 0.1.12) devtools (~> 0.1.21)
ffi (~> 1.9.6) ffi (~> 1.9.6)
mutant! mutant!

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require 'devtools' require 'devtools'
Devtools.init_rake_tasks Devtools.init_rake_tasks

View file

@ -1,137 +1,137 @@
--- ---
Attribute: detectors:
enabled: false Attribute:
exclude: [] enabled: false
BooleanParameter: exclude: []
enabled: true BooleanParameter:
exclude: [] enabled: true
ClassVariable: exclude: []
enabled: true ClassVariable:
exclude: [] enabled: true
ControlParameter: exclude: []
enabled: true ControlParameter:
exclude: enabled: true
- Mutant::Expression#match_length exclude:
DataClump: - Mutant::Expression#match_length
enabled: true DataClump:
exclude: [] enabled: true
max_copies: 2 exclude: []
min_clump_size: 2 max_copies: 2
DuplicateMethodCall: min_clump_size: 2
enabled: false DuplicateMethodCall:
exclude: [] enabled: false
max_calls: 1 exclude: []
allow_calls: [] max_calls: 1
FeatureEnvy: allow_calls: []
enabled: false FeatureEnvy:
# Buggy smell detector enabled: false
IrresponsibleModule: # Buggy smell detector
enabled: false IrresponsibleModule:
exclude: [] enabled: false
LongParameterList: exclude: []
enabled: true LongParameterList:
exclude: enabled: true
- Mutant::Matcher::Method::Instance#self.build exclude:
- Mutant::Meta::Example::DSL # 3 vars - Mutant::Matcher::Method::Instance#self.build
max_params: 2 - Mutant::Meta::Example::DSL # 3 vars
LongYieldList: max_params: 2
enabled: true LongYieldList:
exclude: [] enabled: true
max_params: 2 exclude: []
NestedIterators: max_params: 2
enabled: true NestedIterators:
exclude: enabled: true
- Mutant#self.singleton_subclass_instance exclude:
- Mutant::CLI#parse - Mutant#self.singleton_subclass_instance
- Mutant::Mutator::Node::Arguments#emit_argument_mutations - Mutant::CLI#parse
- Mutant::Mutator::Node::Resbody#mutate_captures - Mutant::Mutator::Node::Arguments#emit_argument_mutations
- Mutant::Mutator::Util::Array::Element#dispatch - Mutant::Mutator::Node::Resbody#mutate_captures
- Mutant::Parallel::Master#run - Mutant::Mutator::Util::Array::Element#dispatch
- Mutant::RequireHighjack#self.call - Mutant::Parallel::Master#run
- Mutant::Selector::Expression#call - Mutant::RequireHighjack#self.call
- Parser::Lexer#self.new - Mutant::Selector::Expression#call
max_allowed_nesting: 1 - Parser::Lexer#self.new
ignore_iterators: [] max_allowed_nesting: 1
NilCheck: ignore_iterators: []
enabled: false NilCheck:
RepeatedConditional: enabled: false
enabled: true RepeatedConditional:
exclude: enabled: true
- Mutant::Mutator exclude:
- Mutant::Meta::Example::DSL - Mutant::Mutator
max_ifs: 1 - Mutant::Meta::Example::DSL
TooManyInstanceVariables: max_ifs: 1
enabled: true TooManyInstanceVariables:
exclude: enabled: true
- Mutant::Mutator # 4 vars exclude:
- Mutant::Parallel::Master # 4 vars - Mutant::Mutator # 4 vars
- Mutant::Meta::Example::DSL # 4 vars - Mutant::Parallel::Master # 4 vars
max_instance_variables: 3 - Mutant::Meta::Example::DSL # 4 vars
TooManyMethods: max_instance_variables: 3
enabled: true TooManyMethods:
exclude: enabled: true
- Mutant::CLI exclude:
- Mutant::Mutator::Node - Mutant::CLI
- Mutant::Parallel::Master - Mutant::Mutator::Node
max_methods: 10 - Mutant::Parallel::Master
TooManyStatements: max_methods: 10
enabled: true TooManyStatements:
exclude: enabled: true
- Mutant::CLI#add_debug_options exclude:
- Mutant::CLI#add_environment_options - Mutant::CLI#add_debug_options
- Mutant::Reporter::CLI::Printer::Config#run - Mutant::CLI#add_environment_options
- Mutant::Reporter::CLI::Printer::EnvProgress#run - Mutant::Reporter::CLI::Printer::Config#run
- Mutant::Runner#run_driver - Mutant::Reporter::CLI::Printer::EnvProgress#run
- Mutant::Zombifier::File#self.find - Mutant::Runner#run_driver
max_statements: 7 - Mutant::Zombifier::File#self.find
UncommunicativeMethodName: max_statements: 7
enabled: true UncommunicativeMethodName:
exclude: enabled: true
- Mutant::AST::Sexp#s exclude:
- Mutant::Mutation#sha1 - Mutant::AST::Sexp#s
reject: - Mutant::Mutation#sha1
- !ruby/regexp /^[a-z]$/ reject:
- !ruby/regexp /[0-9]$/ - '/^[a-z]$/'
- !ruby/regexp /[A-Z]/ - '/[0-9]$/'
accept: [] - '/[A-Z]/'
UncommunicativeModuleName: accept: []
enabled: true UncommunicativeModuleName:
exclude: [] enabled: true
reject: exclude: []
- !ruby/regexp /^.$/ reject:
- !ruby/regexp /[0-9]$/ - '/^.$/'
accept: [] - '/[0-9]$/'
UncommunicativeParameterName: accept: []
enabled: true UncommunicativeParameterName:
exclude: [] enabled: true
reject: exclude: []
- !ruby/regexp /^.$/ reject:
- !ruby/regexp /[0-9]$/ - '/^.$/'
- !ruby/regexp /[A-Z]/ - '/[0-9]$/'
accept: [] - '/[A-Z]/'
UncommunicativeVariableName: accept: []
enabled: true UncommunicativeVariableName:
exclude: [] enabled: true
reject: exclude: []
- !ruby/regexp /^.$/ reject:
- !ruby/regexp /[0-9]$/ - '/^.$/'
- !ruby/regexp /[A-Z]/ - '/[0-9]$/'
accept: ['force_utf32'] - '/[A-Z]/'
UnusedParameters: accept: ['force_utf32']
enabled: true UnusedParameters:
exclude: [] enabled: true
UtilityFunction: exclude: []
enabled: true UtilityFunction:
exclude: enabled: true
- Mutant::AST::Sexp#s exclude:
- Mutant::Actor::Env#new_mailbox - Mutant::AST::Sexp#s
- Mutant::CLI#reporter - Mutant::Actor::Env#new_mailbox
- Mutant::Integration::Null#call - Mutant::CLI#reporter
- Mutant::Integration::Rspec#parse_example - Mutant::Integration::Null#call
- Mutant::Integration::Rspec#parse_expression # intentional, private - Mutant::Integration::Rspec#parse_example
- Mutant::Meta::Example::Verification#format_mutations # intentional, private - Mutant::Integration::Rspec#parse_expression # intentional, private
- Mutant::Reporter::CLI::Format::Progressive#new_buffer - Mutant::Meta::Example::Verification#format_mutations # intentional, private
- Mutant::Reporter::CLI::Printer::StatusProgressive#object # False positive calls super - Mutant::Reporter::CLI::Format::Progressive#new_buffer
- Mutant::Repository::Diff#tracks? # intentional, private - Mutant::Reporter::CLI::Printer::StatusProgressive#object # False positive calls super
- Mutant::Repository::Diff#within_working_directory? # intentional, private - Mutant::Repository::Diff#tracks? # intentional, private
max_helper_calls: 0 - Mutant::Repository::Diff#within_working_directory? # intentional, private

View file

@ -19,7 +19,7 @@ CollectionMethods:
find_all: 'select' find_all: 'select'
AccessModifierIndentation: AccessModifierIndentation:
EnforcedStyle: outdent Enabled: false
# Limit line length # Limit line length
LineLength: LineLength:
@ -181,5 +181,27 @@ AlignHash:
Send: Send:
Enabled: true Enabled: true
Layout/EmptyLineAfterGuardClause:
Enabled: false
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: false
Lint/BooleanSymbol:
Enabled: false
Lint/InterpolationCheck:
Enabled: false
Lint/MissingCopEnableDirective:
Enabled: false
Lint/UnifiedInteger: Lint/UnifiedInteger:
Enabled: false Enabled: false
Naming/FileName:
Enabled: false
Style/AccessModifierDeclarations:
Enabled: false
Style/CommentedKeyword:
Enabled: false
Style/MixinGrouping:
Enabled: false
Style/RescueStandardError:
Enabled: false
Style/StderrPuts:
Enabled: false

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require 'abstract_type' require 'abstract_type'
require 'adamantium' require 'adamantium'
require 'anima' require 'anima'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# A minimal actor implementation # A minimal actor implementation
module Actor module Actor

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module Actor module Actor
# Actor root environment # Actor root environment

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module Actor module Actor
# Unbound mailbox # Unbound mailbox

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module Actor module Actor
# Receiver side of an actor # Receiver side of an actor

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module Actor module Actor

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# AST helpers # AST helpers
module AST module AST

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Node meta information mixin # Node meta information mixin

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Node meta information mixin # Node meta information mixin

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Node meta information mixin # Node meta information mixin

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Node meta information mixin # Node meta information mixin

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Node meta information mixin # Node meta information mixin

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Node meta information mixin # Node meta information mixin

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Node meta information mixin # Node meta information mixin

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Module for node predicates # Module for node predicates

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Singleton nodes # Singleton nodes

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Regexp source mapper # Regexp source mapper

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
module Regexp module Regexp

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
module Regexp module Regexp

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
module Regexp module Regexp

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
module Regexp module Regexp

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
module Regexp module Regexp

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
module Regexp module Regexp

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
module Regexp module Regexp

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
module Regexp module Regexp

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
module Regexp module Regexp

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Mixin for node sexp syntax # Mixin for node sexp syntax

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module AST module AST
# Groups of node types # Groups of node types

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Commandline parser / runner # Commandline parser / runner
class CLI class CLI

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Class to colorize strings # Class to colorize strings
class Color class Color
@ -25,7 +26,7 @@ module Mutant
text text
end end
private # rubocop:disable AccessModifierIndentation private
# Initialize null color # Initialize null color
# #

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Standalone configuration of a mutant execution. # Standalone configuration of a mutant execution.
# #

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# An abstract context where mutations can be applied to. # An abstract context where mutations can be applied to.
class Context class Context

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Class to create diffs from source code # Class to create diffs from source code
class Diff class Diff

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Abstract base class for mutant environments # Abstract base class for mutant environments
class Env class Env

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Env class Env
# Bootstrap environment # Bootstrap environment

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Abstract base class for match expression # Abstract base class for match expression

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Expression class Expression

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Expression class Expression

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Expression class Expression
# Abstract base class for expressions matching namespaces # Abstract base class for expressions matching namespaces

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Expression class Expression
class Parser class Parser

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Abstract base class mutant test framework integrations # Abstract base class mutant test framework integrations

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require 'rspec/core' require 'rspec/core'
module Mutant module Mutant

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Isolation class Isolation
include AbstractType include AbstractType

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Isolation class Isolation
# Isolation via the fork(2) systemcall. # Isolation via the fork(2) systemcall.

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Module providing isolation # Module providing isolation
class Isolation class Isolation

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Base class for code loaders # Base class for code loaders
class Loader class Loader

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Abstract matcher to find subjects to mutate # Abstract matcher to find subjects to mutate
class Matcher class Matcher

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher
# Matcher chaining results of other matchers together # Matcher chaining results of other matchers together

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher
# Subject matcher configuration # Subject matcher configuration

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher
# Matcher filter # Matcher filter

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher
# Abstract base class for method matchers # Abstract base class for method matchers

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher
class Method class Method

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher
class Method class Method

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher
# Abstract base class for matcher that returns method subjects from scope # Abstract base class for matcher that returns method subjects from scope

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher
# Matcher for specific namespace # Matcher for specific namespace

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher
# A null matcher, that does not match any subjects # A null matcher, that does not match any subjects

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher
# Matcher expanding Mutant::Scope objects into method matches # Matcher expanding Mutant::Scope objects into method matches

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Matcher class Matcher
# Matcher returning subjects already known at its creation time # Matcher returning subjects already known at its creation time

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Namespace for mutant metadata # Namespace for mutant metadata
module Meta module Meta
@ -15,6 +16,8 @@ module Mutant
# Add example # Add example
# #
# @return [undefined] # @return [undefined]
#
# rubocop:disable Performance/Caller
def self.add(type, &block) def self.add(type, &block)
file = caller.first.split(':in', 2).first file = caller.first.split(':in', 2).first
ALL << DSL.call(file, type, block) ALL << DSL.call(file, type, block)

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module Meta module Meta
class Example class Example

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module Meta module Meta
class Example class Example

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
module Meta module Meta
class Example class Example

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Represent a mutated node with its subject # Represent a mutated node with its subject
class Mutation class Mutation

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Generator for mutations # Generator for mutations
class Mutator class Mutator

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
# Generator for mutations # Generator for mutations

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Mutant module Mutant
class Mutator class Mutator
class Node class Node

Some files were not shown because too many files have changed in this diff Show more