2012-07-26 13:25:23 -04:00
|
|
|
# For Veritas::Immutable. will be extracted soon
|
2012-07-23 16:54:35 -04:00
|
|
|
require 'veritas'
|
|
|
|
|
2012-07-27 16:39:31 -04:00
|
|
|
require 'securerandom'
|
2012-07-31 16:01:55 -04:00
|
|
|
require 'to_source'
|
|
|
|
require 'ice_nine'
|
2012-07-27 16:39:31 -04:00
|
|
|
|
2012-07-23 16:54:35 -04:00
|
|
|
# Library namespace
|
|
|
|
module Mutant
|
2012-07-31 16:01:55 -04:00
|
|
|
|
|
|
|
# Return deep clone of object
|
|
|
|
#
|
|
|
|
# @param [Object] object
|
|
|
|
#
|
|
|
|
# @return [Object] object
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def self.deep_clone(object)
|
|
|
|
Marshal.load(Marshal.dump(object))
|
|
|
|
end
|
2012-08-01 10:58:29 -04:00
|
|
|
|
|
|
|
# Check for ruby-1.8 mode
|
|
|
|
#
|
|
|
|
# @return [true]
|
|
|
|
# returns true if running under 1.8 mode
|
|
|
|
#
|
|
|
|
# @return [false]
|
|
|
|
# returns false otherwise
|
|
|
|
#
|
2012-08-01 11:03:24 -04:00
|
|
|
# @api private
|
|
|
|
#
|
2012-08-01 10:58:29 -04:00
|
|
|
def self.on_18?
|
|
|
|
RUBY_VERSION == '1.8.7'
|
|
|
|
end
|
2012-07-23 16:54:35 -04:00
|
|
|
end
|
|
|
|
|
2012-07-30 22:00:05 -04:00
|
|
|
require 'mutant/support/abstract'
|
2012-07-31 14:11:37 -04:00
|
|
|
require 'mutant/random'
|
2012-08-01 13:05:34 -04:00
|
|
|
require 'mutant/runner'
|
2012-07-26 13:25:23 -04:00
|
|
|
require 'mutant/mutator'
|
2012-08-01 07:27:35 -04:00
|
|
|
require 'mutant/mutator/registry'
|
2012-07-31 13:45:46 -04:00
|
|
|
require 'mutant/mutator/literal'
|
|
|
|
require 'mutant/mutator/literal/boolean'
|
|
|
|
require 'mutant/mutator/literal/range'
|
|
|
|
require 'mutant/mutator/literal/symbol'
|
|
|
|
require 'mutant/mutator/literal/string'
|
|
|
|
require 'mutant/mutator/literal/fixnum'
|
|
|
|
require 'mutant/mutator/literal/float'
|
|
|
|
require 'mutant/mutator/literal/array'
|
|
|
|
require 'mutant/mutator/literal/empty_array'
|
|
|
|
require 'mutant/mutator/literal/hash'
|
|
|
|
require 'mutant/mutator/literal/regex'
|
|
|
|
#require 'mutant/mutator/literal/dynamic'
|
2012-07-27 16:39:31 -04:00
|
|
|
require 'mutant/mutator/block'
|
2012-08-01 08:13:57 -04:00
|
|
|
require 'mutant/mutator/noop'
|
|
|
|
require 'mutant/mutator/call'
|
2012-08-01 07:27:35 -04:00
|
|
|
require 'mutant/mutator/call'
|
2012-08-01 10:06:36 -04:00
|
|
|
require 'mutant/mutator/if_statement'
|
2012-08-01 11:52:12 -04:00
|
|
|
require 'mutant/mutator/receiver_case'
|
2012-08-01 07:27:35 -04:00
|
|
|
require 'mutant/loader'
|
2012-07-26 13:25:23 -04:00
|
|
|
require 'mutant/context'
|
|
|
|
require 'mutant/context/constant'
|
2012-08-01 12:34:03 -04:00
|
|
|
require 'mutant/subject'
|
2012-07-23 16:54:35 -04:00
|
|
|
require 'mutant/matcher'
|
|
|
|
require 'mutant/matcher/method'
|
|
|
|
require 'mutant/matcher/method/singleton'
|
|
|
|
require 'mutant/matcher/method/instance'
|
|
|
|
require 'mutant/matcher/method/classifier'
|