2012-10-15 08:36:15 -04:00
|
|
|
require 'backports'
|
|
|
|
require 'adamantium'
|
2012-08-28 13:15:10 -04:00
|
|
|
require 'ice_nine'
|
2012-11-26 06:16:22 -05:00
|
|
|
require 'abstract_type'
|
2012-08-28 13:15:10 -04:00
|
|
|
require 'descendants_tracker'
|
2012-07-27 16:39:31 -04:00
|
|
|
require 'securerandom'
|
2012-09-15 17:04:10 -04:00
|
|
|
require 'equalizer'
|
2012-11-21 16:28:08 -05:00
|
|
|
require 'digest/sha1'
|
2012-12-12 14:15:25 -05:00
|
|
|
require 'inflector'
|
2012-07-31 16:01:55 -04:00
|
|
|
require 'to_source'
|
|
|
|
require 'ice_nine'
|
2012-08-16 12:02:03 -04:00
|
|
|
require 'diff/lcs'
|
|
|
|
require 'diff/lcs/hunk'
|
2012-11-21 19:42:10 -05:00
|
|
|
require 'rspec'
|
2012-07-27 16:39:31 -04:00
|
|
|
|
2012-12-10 18:17:19 -05:00
|
|
|
module IceNine
|
|
|
|
class Freezer
|
|
|
|
class Rubinius
|
|
|
|
class AST < IceNine::Freezer::Object
|
|
|
|
class Node < IceNine::Freezer::Object
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2012-07-23 16:54:35 -04:00
|
|
|
# Library namespace
|
|
|
|
module Mutant
|
2012-11-21 16:28:08 -05:00
|
|
|
|
|
|
|
# Define instance of subclassed superclass as constant
|
|
|
|
#
|
|
|
|
# @param [Class] superclass
|
|
|
|
# @param [Symbol] name
|
|
|
|
#
|
|
|
|
# @return [self]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def self.define_singleton_subclass(name, superclass, &block)
|
|
|
|
klass = Class.new(superclass) do
|
|
|
|
|
|
|
|
def inspect; self.class.name; end
|
|
|
|
|
|
|
|
define_singleton_method(:name) do
|
|
|
|
"#{superclass.name}::#{name}".freeze
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
klass.class_eval(&block)
|
|
|
|
superclass.const_set(name, klass.new)
|
|
|
|
self
|
|
|
|
end
|
|
|
|
|
2012-12-07 17:27:21 -05:00
|
|
|
PID = Process.pid
|
|
|
|
|
2012-07-23 16:54:35 -04:00
|
|
|
end
|
|
|
|
|
2012-08-15 22:07:45 -04:00
|
|
|
require 'mutant/support/method_object'
|
2012-08-16 16:59:25 -04:00
|
|
|
require 'mutant/helper'
|
2012-07-31 14:11:37 -04:00
|
|
|
require 'mutant/random'
|
2012-07-26 13:25:23 -04:00
|
|
|
require 'mutant/mutator'
|
2012-08-15 22:09:14 -04:00
|
|
|
require 'mutant/mutation'
|
2012-08-28 13:15:10 -04:00
|
|
|
require 'mutant/mutation/filter'
|
|
|
|
require 'mutant/mutation/filter/code'
|
|
|
|
require 'mutant/mutation/filter/whitelist'
|
2012-08-01 07:27:35 -04:00
|
|
|
require 'mutant/mutator/registry'
|
2012-12-06 14:44:26 -05:00
|
|
|
require 'mutant/mutator/util'
|
2012-12-06 15:30:28 -05:00
|
|
|
require 'mutant/mutator/node'
|
|
|
|
require 'mutant/mutator/node/literal'
|
|
|
|
require 'mutant/mutator/node/literal/boolean'
|
|
|
|
require 'mutant/mutator/node/literal/range'
|
|
|
|
require 'mutant/mutator/node/literal/symbol'
|
|
|
|
require 'mutant/mutator/node/literal/string'
|
|
|
|
require 'mutant/mutator/node/literal/fixnum'
|
|
|
|
require 'mutant/mutator/node/literal/float'
|
|
|
|
require 'mutant/mutator/node/literal/array'
|
|
|
|
require 'mutant/mutator/node/literal/empty_array'
|
|
|
|
require 'mutant/mutator/node/literal/hash'
|
|
|
|
require 'mutant/mutator/node/literal/regex'
|
|
|
|
require 'mutant/mutator/node/literal/nil'
|
|
|
|
require 'mutant/mutator/node/block'
|
|
|
|
require 'mutant/mutator/node/noop'
|
|
|
|
require 'mutant/mutator/node/send'
|
|
|
|
require 'mutant/mutator/node/arguments'
|
|
|
|
require 'mutant/mutator/node/define'
|
|
|
|
require 'mutant/mutator/node/return'
|
2012-12-10 18:17:19 -05:00
|
|
|
require 'mutant/mutator/node/local_variable_assignment'
|
2012-12-10 11:11:08 -05:00
|
|
|
require 'mutant/mutator/node/iter_19'
|
2012-12-06 15:30:28 -05:00
|
|
|
require 'mutant/mutator/node/if_statement'
|
|
|
|
require 'mutant/mutator/node/receiver_case'
|
2012-08-01 07:27:35 -04:00
|
|
|
require 'mutant/loader'
|
2012-07-26 13:25:23 -04:00
|
|
|
require 'mutant/context'
|
2012-08-15 22:10:54 -04:00
|
|
|
require 'mutant/context/scope'
|
2012-08-01 12:34:03 -04:00
|
|
|
require 'mutant/subject'
|
2012-07-23 16:54:35 -04:00
|
|
|
require 'mutant/matcher'
|
2012-08-28 13:15:10 -04:00
|
|
|
require 'mutant/matcher/chain'
|
|
|
|
require 'mutant/matcher/object_space'
|
2012-07-23 16:54:35 -04:00
|
|
|
require 'mutant/matcher/method'
|
|
|
|
require 'mutant/matcher/method/singleton'
|
|
|
|
require 'mutant/matcher/method/instance'
|
2012-11-21 16:28:08 -05:00
|
|
|
require 'mutant/matcher/scope_methods'
|
2012-12-07 17:27:21 -05:00
|
|
|
require 'mutant/matcher/method/classifier'
|
2012-08-14 16:45:34 -04:00
|
|
|
require 'mutant/killer'
|
2012-11-21 21:00:36 -05:00
|
|
|
require 'mutant/killer/static'
|
2012-08-14 16:45:34 -04:00
|
|
|
require 'mutant/killer/rspec'
|
2012-11-21 16:55:53 -05:00
|
|
|
require 'mutant/killer/forking'
|
2012-11-21 18:10:50 -05:00
|
|
|
require 'mutant/strategy'
|
2012-12-07 10:55:53 -05:00
|
|
|
require 'mutant/strategy/rspec'
|
|
|
|
require 'mutant/strategy/rspec/example_lookup'
|
2012-08-14 16:45:34 -04:00
|
|
|
require 'mutant/runner'
|
2012-08-28 13:15:10 -04:00
|
|
|
require 'mutant/cli'
|
2012-08-16 12:02:03 -04:00
|
|
|
require 'mutant/color'
|
|
|
|
require 'mutant/differ'
|
2012-08-15 22:10:54 -04:00
|
|
|
require 'mutant/reporter'
|
2012-12-07 09:59:37 -05:00
|
|
|
require 'mutant/reporter/stats'
|
2012-08-15 22:10:54 -04:00
|
|
|
require 'mutant/reporter/null'
|
|
|
|
require 'mutant/reporter/cli'
|