free_mutant/lib/mutant.rb

78 lines
1.8 KiB
Ruby
Raw Normal View History

2012-08-02 18:19:01 -04:00
require 'immutable'
require 'abstract'
require 'securerandom'
require 'to_source'
require 'ice_nine'
2012-08-14 16:45:34 -04:00
require 'backports'
# Library namespace
module Mutant
# Return deep clone of object
#
# @param [Object] object
#
# @return [Object] object
#
# @api private
#
def self.deep_clone(object)
Marshal.load(Marshal.dump(object))
end
# 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
#
def self.on_18?
RUBY_VERSION == '1.8.7'
end
end
2012-08-15 22:07:45 -04:00
require 'mutant/support/method_object'
require 'mutant/random'
require 'mutant/mutator'
2012-08-15 22:09:14 -04:00
require 'mutant/mutation'
require 'mutant/mutator/registry'
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'
require 'mutant/mutator/block'
require 'mutant/mutator/noop'
require 'mutant/mutator/call'
2012-08-14 06:04:48 -04:00
require 'mutant/mutator/define'
require 'mutant/mutator/if_statement'
require 'mutant/mutator/receiver_case'
require 'mutant/loader'
require 'mutant/context'
require 'mutant/context/scope'
2012-08-01 12:34:03 -04:00
require 'mutant/subject'
require 'mutant/matcher'
require 'mutant/matcher/method'
require 'mutant/matcher/method/singleton'
require 'mutant/matcher/method/instance'
require 'mutant/matcher/method/classifier'
2012-08-14 16:45:34 -04:00
require 'mutant/killer'
require 'mutant/killer/rspec'
require 'mutant/runner'
require 'mutant/reporter'
require 'mutant/reporter/null'
require 'mutant/reporter/cli'