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,44 +1,45 @@
--- ---
Attribute: detectors:
Attribute:
enabled: false enabled: false
exclude: [] exclude: []
BooleanParameter: BooleanParameter:
enabled: true enabled: true
exclude: [] exclude: []
ClassVariable: ClassVariable:
enabled: true enabled: true
exclude: [] exclude: []
ControlParameter: ControlParameter:
enabled: true enabled: true
exclude: exclude:
- Mutant::Expression#match_length - Mutant::Expression#match_length
DataClump: DataClump:
enabled: true enabled: true
exclude: [] exclude: []
max_copies: 2 max_copies: 2
min_clump_size: 2 min_clump_size: 2
DuplicateMethodCall: DuplicateMethodCall:
enabled: false enabled: false
exclude: [] exclude: []
max_calls: 1 max_calls: 1
allow_calls: [] allow_calls: []
FeatureEnvy: FeatureEnvy:
enabled: false enabled: false
# Buggy smell detector # Buggy smell detector
IrresponsibleModule: IrresponsibleModule:
enabled: false enabled: false
exclude: [] exclude: []
LongParameterList: LongParameterList:
enabled: true enabled: true
exclude: exclude:
- Mutant::Matcher::Method::Instance#self.build - Mutant::Matcher::Method::Instance#self.build
- Mutant::Meta::Example::DSL # 3 vars - Mutant::Meta::Example::DSL # 3 vars
max_params: 2 max_params: 2
LongYieldList: LongYieldList:
enabled: true enabled: true
exclude: [] exclude: []
max_params: 2 max_params: 2
NestedIterators: NestedIterators:
enabled: true enabled: true
exclude: exclude:
- Mutant#self.singleton_subclass_instance - Mutant#self.singleton_subclass_instance
@ -52,29 +53,29 @@ NestedIterators:
- Parser::Lexer#self.new - Parser::Lexer#self.new
max_allowed_nesting: 1 max_allowed_nesting: 1
ignore_iterators: [] ignore_iterators: []
NilCheck: NilCheck:
enabled: false enabled: false
RepeatedConditional: RepeatedConditional:
enabled: true enabled: true
exclude: exclude:
- Mutant::Mutator - Mutant::Mutator
- Mutant::Meta::Example::DSL - Mutant::Meta::Example::DSL
max_ifs: 1 max_ifs: 1
TooManyInstanceVariables: TooManyInstanceVariables:
enabled: true enabled: true
exclude: exclude:
- Mutant::Mutator # 4 vars - Mutant::Mutator # 4 vars
- Mutant::Parallel::Master # 4 vars - Mutant::Parallel::Master # 4 vars
- Mutant::Meta::Example::DSL # 4 vars - Mutant::Meta::Example::DSL # 4 vars
max_instance_variables: 3 max_instance_variables: 3
TooManyMethods: TooManyMethods:
enabled: true enabled: true
exclude: exclude:
- Mutant::CLI - Mutant::CLI
- Mutant::Mutator::Node - Mutant::Mutator::Node
- Mutant::Parallel::Master - Mutant::Parallel::Master
max_methods: 10 max_methods: 10
TooManyStatements: TooManyStatements:
enabled: true enabled: true
exclude: exclude:
- Mutant::CLI#add_debug_options - Mutant::CLI#add_debug_options
@ -84,43 +85,43 @@ TooManyStatements:
- Mutant::Runner#run_driver - Mutant::Runner#run_driver
- Mutant::Zombifier::File#self.find - Mutant::Zombifier::File#self.find
max_statements: 7 max_statements: 7
UncommunicativeMethodName: UncommunicativeMethodName:
enabled: true enabled: true
exclude: exclude:
- Mutant::AST::Sexp#s - Mutant::AST::Sexp#s
- Mutant::Mutation#sha1 - Mutant::Mutation#sha1
reject: reject:
- !ruby/regexp /^[a-z]$/ - '/^[a-z]$/'
- !ruby/regexp /[0-9]$/ - '/[0-9]$/'
- !ruby/regexp /[A-Z]/ - '/[A-Z]/'
accept: [] accept: []
UncommunicativeModuleName: UncommunicativeModuleName:
enabled: true enabled: true
exclude: [] exclude: []
reject: reject:
- !ruby/regexp /^.$/ - '/^.$/'
- !ruby/regexp /[0-9]$/ - '/[0-9]$/'
accept: [] accept: []
UncommunicativeParameterName: UncommunicativeParameterName:
enabled: true enabled: true
exclude: [] exclude: []
reject: reject:
- !ruby/regexp /^.$/ - '/^.$/'
- !ruby/regexp /[0-9]$/ - '/[0-9]$/'
- !ruby/regexp /[A-Z]/ - '/[A-Z]/'
accept: [] accept: []
UncommunicativeVariableName: UncommunicativeVariableName:
enabled: true enabled: true
exclude: [] exclude: []
reject: reject:
- !ruby/regexp /^.$/ - '/^.$/'
- !ruby/regexp /[0-9]$/ - '/[0-9]$/'
- !ruby/regexp /[A-Z]/ - '/[A-Z]/'
accept: ['force_utf32'] accept: ['force_utf32']
UnusedParameters: UnusedParameters:
enabled: true enabled: true
exclude: [] exclude: []
UtilityFunction: UtilityFunction:
enabled: true enabled: true
exclude: exclude:
- Mutant::AST::Sexp#s - Mutant::AST::Sexp#s
@ -134,4 +135,3 @@ UtilityFunction:
- Mutant::Reporter::CLI::Printer::StatusProgressive#object # False positive calls super - Mutant::Reporter::CLI::Printer::StatusProgressive#object # False positive calls super
- Mutant::Repository::Diff#tracks? # intentional, private - Mutant::Repository::Diff#tracks? # intentional, private
- Mutant::Repository::Diff#within_working_directory? # intentional, private - Mutant::Repository::Diff#within_working_directory? # intentional, private
max_helper_calls: 0

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