Use abstract_type gem from rubygems

This commit is contained in:
Markus Schirp 2012-11-26 11:30:00 +01:00
parent 6c47342bca
commit 98d5b6562c
13 changed files with 13 additions and 13 deletions

View file

@ -1,7 +1,7 @@
module Mutant module Mutant
# An abstract context where mutations can be appied to. # An abstract context where mutations can be appied to.
class Context class Context
include Adamantium::Flat, AbstractClass include Adamantium::Flat, AbstractType
# Return root ast node # Return root ast node
# #

View file

@ -2,7 +2,7 @@ module Mutant
class Context class Context
# Scope context for mutation (Class or Module) # Scope context for mutation (Class or Module)
class Scope < self class Scope < self
include Adamantium::Flat, AbstractClass, Equalizer.new(:scope, :source_path) include Adamantium::Flat, AbstractType, Equalizer.new(:scope, :source_path)
# Class context for mutation # Class context for mutation
class Class < self class Class < self

View file

@ -1,7 +1,7 @@
module Mutant module Mutant
# Abstract base class for mutant killers # Abstract base class for mutant killers
class Killer class Killer
include Adamantium::Flat, AbstractClass include Adamantium::Flat, AbstractType
# Test for kill failure # Test for kill failure
# #

View file

@ -1,7 +1,7 @@
module Mutant module Mutant
# Base class for code loaders # Base class for code loaders
class Loader class Loader
include AbstractClass include AbstractType
extend MethodObject extend MethodObject
private private

View file

@ -1,7 +1,7 @@
module Mutant module Mutant
# Abstract matcher to find ASTs to mutate # Abstract matcher to find ASTs to mutate
class Matcher class Matcher
include Adamantium::Flat, Enumerable, AbstractClass include Adamantium::Flat, Enumerable, AbstractType
extend DescendantsTracker extend DescendantsTracker
# Enumerate subjects # Enumerate subjects

View file

@ -2,7 +2,7 @@ module Mutant
class Matcher class Matcher
# Abstract base class for matcher that returns subjects extracted from scope methods # Abstract base class for matcher that returns subjects extracted from scope methods
class ScopeMethods < self class ScopeMethods < self
include AbstractClass include AbstractType
# Return scope # Return scope
# #

View file

@ -2,7 +2,7 @@ module Mutant
class Mutation class Mutation
# Abstract filter for mutations # Abstract filter for mutations
class Filter class Filter
include Adamantium::Flat, AbstractClass include Adamantium::Flat, AbstractType
extend DescendantsTracker extend DescendantsTracker
# Check for match # Check for match

View file

@ -1,7 +1,7 @@
module Mutant module Mutant
# Generator for mutations # Generator for mutations
class Mutator class Mutator
include Adamantium::Flat, AbstractClass include Adamantium::Flat, AbstractType
# Enumerate mutations on node # Enumerate mutations on node
# #

View file

@ -2,7 +2,7 @@ module Mutant
class Mutator class Mutator
# Abstract mutator for literal AST nodes # Abstract mutator for literal AST nodes
class Literal < self class Literal < self
include AbstractClass include AbstractType
private private

View file

@ -3,7 +3,7 @@ module Mutant
class Literal class Literal
# Abstract literal range mutator # Abstract literal range mutator
class Range < self class Range < self
include AbstractClass include AbstractType
private private

View file

@ -1,7 +1,7 @@
module Mutant module Mutant
# Abstract reporter # Abstract reporter
class Reporter class Reporter
include Adamantium::Flat, AbstractClass include Adamantium::Flat, AbstractType
# Report subject # Report subject
# #

View file

@ -1,6 +1,6 @@
module Mutant module Mutant
class Strategy class Strategy
include AbstractClass include AbstractType
# Kill mutation # Kill mutation
# #

View file

@ -21,6 +21,6 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency('backports', '~> 2.6') gem.add_runtime_dependency('backports', '~> 2.6')
gem.add_runtime_dependency('adamantium', '~> 0.0.3') gem.add_runtime_dependency('adamantium', '~> 0.0.3')
gem.add_runtime_dependency('equalizer', '~> 0.0.1') gem.add_runtime_dependency('equalizer', '~> 0.0.1')
gem.add_runtime_dependency('abstract_class', '~> 0.0.1') gem.add_runtime_dependency('abstract_type', '~> 0.0.2')
gem.add_runtime_dependency('diff-lcs', '~> 1.1.3') gem.add_runtime_dependency('diff-lcs', '~> 1.1.3')
end end