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-31 13:45:46 -04:00
|
|
|
# For Virtus::DescendantsTracker. will be extracted soon
|
|
|
|
require 'virtus'
|
2012-07-23 16:54:35 -04:00
|
|
|
|
2012-07-27 16:39:31 -04:00
|
|
|
require 'securerandom'
|
|
|
|
|
2012-07-23 16:54:35 -04:00
|
|
|
# Library namespace
|
|
|
|
module Mutant
|
2012-07-27 16:39:31 -04:00
|
|
|
# Return random string
|
|
|
|
#
|
|
|
|
# @return [String]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def self.random_hex_string
|
|
|
|
SecureRandom.hex(10)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Return random fixnum
|
|
|
|
#
|
|
|
|
# @return [Fixnum]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def self.random_fixnum
|
|
|
|
Random.rand(1000)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Return random float
|
|
|
|
#
|
|
|
|
# @return [Float]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
2012-07-29 16:28:30 -04:00
|
|
|
def self.random_float
|
2012-07-27 16:39:31 -04:00
|
|
|
Random.rand
|
|
|
|
end
|
2012-07-23 16:54:35 -04:00
|
|
|
end
|
|
|
|
|
2012-07-30 22:00:05 -04:00
|
|
|
require 'mutant/support/abstract'
|
2012-07-26 13:25:23 -04:00
|
|
|
require 'mutant/mutator'
|
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-07-26 13:25:23 -04:00
|
|
|
require 'mutant/loader'
|
|
|
|
require 'mutant/context'
|
|
|
|
require 'mutant/context/constant'
|
|
|
|
require 'mutant/mutatee'
|
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'
|