Remove more duplication with concord
This commit is contained in:
parent
b43f449f3f
commit
d1aed52877
2 changed files with 2 additions and 40 deletions
|
@ -2,27 +2,7 @@ module Mutant
|
||||||
|
|
||||||
# Abstract base class for killing strategies
|
# Abstract base class for killing strategies
|
||||||
class Strategy
|
class Strategy
|
||||||
include AbstractType, Adamantium::Flat, Equalizer.new
|
include AbstractType, Adamantium::Flat, Concord::Public.new(:config)
|
||||||
|
|
||||||
# Return config
|
|
||||||
#
|
|
||||||
# @return [Config]
|
|
||||||
#
|
|
||||||
# @api private
|
|
||||||
#
|
|
||||||
attr_reader :config
|
|
||||||
|
|
||||||
# Initialize object
|
|
||||||
#
|
|
||||||
# @param [Config] config
|
|
||||||
#
|
|
||||||
# @return [undefined
|
|
||||||
#
|
|
||||||
# @api private
|
|
||||||
#
|
|
||||||
def initialize(config)
|
|
||||||
@config = config
|
|
||||||
end
|
|
||||||
|
|
||||||
# Perform setup
|
# Perform setup
|
||||||
#
|
#
|
||||||
|
|
|
@ -5,15 +5,7 @@ module Mutant
|
||||||
|
|
||||||
# Example lookup for the rspec dm2
|
# Example lookup for the rspec dm2
|
||||||
class Lookup
|
class Lookup
|
||||||
include AbstractType, Adamantium::Flat, Equalizer.new(:subject)
|
include AbstractType, Adamantium::Flat, Concord::Public.new(:subject)
|
||||||
|
|
||||||
# Return subject
|
|
||||||
#
|
|
||||||
# @return [Subject]
|
|
||||||
#
|
|
||||||
# @api private
|
|
||||||
#
|
|
||||||
attr_reader :subject
|
|
||||||
|
|
||||||
# Return glob expression
|
# Return glob expression
|
||||||
#
|
#
|
||||||
|
@ -23,16 +15,6 @@ module Mutant
|
||||||
#
|
#
|
||||||
abstract_method :spec_files
|
abstract_method :spec_files
|
||||||
|
|
||||||
# Initalize object
|
|
||||||
#
|
|
||||||
# @param [Mutation] mutation
|
|
||||||
#
|
|
||||||
# @api private
|
|
||||||
#
|
|
||||||
def initialize(subject)
|
|
||||||
@subject = subject
|
|
||||||
end
|
|
||||||
|
|
||||||
# Perform example lookup
|
# Perform example lookup
|
||||||
#
|
#
|
||||||
# @param [Subject] subject
|
# @param [Subject] subject
|
||||||
|
|
Loading…
Reference in a new issue