free_mutant/lib/mutant.rb

165 lines
5.3 KiB
Ruby
Raw Normal View History

# encoding: utf-8
require 'stringio'
require 'benchmark'
2013-01-03 10:52:42 -05:00
require 'set'
2012-10-15 08:36:15 -04:00
require 'adamantium'
require 'ice_nine'
2012-11-26 06:16:22 -05:00
require 'abstract_type'
require 'descendants_tracker'
require 'securerandom'
require 'equalizer'
require 'digest/sha1'
2013-01-22 10:05:56 -05:00
require 'inflecto'
2013-05-21 20:40:50 -04:00
require 'parser'
require 'parser/current'
2013-05-21 20:40:50 -04:00
require 'unparser'
require 'ice_nine'
2012-08-16 12:02:03 -04:00
require 'diff/lcs'
require 'diff/lcs/hunk'
require 'rspec'
require 'anima'
2013-03-24 11:43:40 -04:00
require 'concord'
require 'rspec'
# Monkeypatch on parser with a list of allowed nodes.
# Will be pushed upstream once turning out to be correct.
module Parser
module Meta
NODE_TYPES =
%w(
true false nil int float str dstr str
sym dsym xstr regopt regexp array splat
array pair kwsplat hash irange erange self
lvar ivar cvar gvar const defined? lvasgn
ivasgn cvasgn gvasgn casgn mlhs masgn op_asgn
op_asgn and_asgn ensure rescue arg_expr
or_asgn and_asgn or_asgn back_ref nth_ref
match_with_lvasgn match_current_line
module class sclass def defs undef alias args
cbase arg optarg restarg blockarg block_pass args def kwarg kwoptarg
kwrestarg send super zsuper yield block send
and not or if when case while until while_post
until_post for break next redo return resbody
kwbegin begin retry preexe postexe iflipflop eflipflop
).map(&:to_sym).to_set.freeze
end # Meta
end # Parser
# Library namespace
module Mutant
# The empty string used within this namespace
EMPTY_STRING = ''.freeze
end # Mutant
require 'mutant/version'
require 'mutant/cache'
require 'mutant/node_helpers'
require 'mutant/singleton_methods'
require 'mutant/constants'
require 'mutant/random'
2013-09-07 17:12:03 -04:00
require 'mutant/predicate'
require 'mutant/predicate/attribute'
require 'mutant/predicate/whitelist'
require 'mutant/predicate/blacklist'
require 'mutant/predicate/matcher'
require 'mutant/mutator'
2012-08-15 22:09:14 -04:00
require 'mutant/mutation'
2013-01-15 17:46:05 -05:00
require 'mutant/mutation/evil'
require 'mutant/mutation/neutral'
require 'mutant/mutator/registry'
require 'mutant/mutator/util'
require 'mutant/mutator/util/array'
require 'mutant/mutator/util/symbol'
require 'mutant/mutator/node'
require 'mutant/mutator/node/generic'
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/hash'
require 'mutant/mutator/node/literal/regex'
require 'mutant/mutator/node/literal/nil'
2013-06-04 17:44:17 -04:00
require 'mutant/mutator/node/argument'
require 'mutant/mutator/node/arguments'
2013-09-09 02:08:44 -04:00
require 'mutant/mutator/node/blockarg'
2013-06-04 16:16:04 -04:00
require 'mutant/mutator/node/begin'
2013-07-24 01:58:53 -04:00
require 'mutant/mutator/node/connective/binary'
require 'mutant/mutator/node/const'
2013-09-08 00:28:37 -04:00
require 'mutant/mutator/node/dstr'
2013-09-08 11:17:47 -04:00
require 'mutant/mutator/node/dsym'
2013-11-03 23:51:55 -05:00
require 'mutant/mutator/node/kwbegin'
require 'mutant/mutator/node/named_value/access'
2013-07-23 03:23:21 -04:00
require 'mutant/mutator/node/named_value/constant_assignment'
require 'mutant/mutator/node/named_value/variable_assignment'
2013-11-20 14:25:17 -05:00
require 'mutant/mutator/node/loop_control'
require 'mutant/mutator/node/noop'
2013-09-08 02:03:25 -04:00
require 'mutant/mutator/node/op_asgn'
require 'mutant/mutator/node/conditional_loop'
2013-11-03 15:37:47 -05:00
require 'mutant/mutator/node/yield'
2013-01-01 17:28:21 -05:00
require 'mutant/mutator/node/super'
2013-07-23 04:02:29 -04:00
require 'mutant/mutator/node/zsuper'
2013-09-07 22:49:55 -04:00
require 'mutant/mutator/node/restarg'
require 'mutant/mutator/node/send'
require 'mutant/mutator/node/send/binary'
require 'mutant/mutator/node/when'
require 'mutant/mutator/node/define'
2013-06-14 14:19:53 -04:00
require 'mutant/mutator/node/mlhs'
2013-08-02 19:36:13 -04:00
require 'mutant/mutator/node/nthref'
require 'mutant/mutator/node/masgn'
require 'mutant/mutator/node/return'
2013-06-14 14:19:53 -04:00
require 'mutant/mutator/node/block'
require 'mutant/mutator/node/if'
2013-06-14 12:22:34 -04:00
require 'mutant/mutator/node/case'
2013-07-15 16:25:09 -04:00
require 'mutant/mutator/node/splat'
require 'mutant/mutator/node/resbody'
2013-04-17 23:31:21 -04:00
require 'mutant/config'
require 'mutant/loader'
require 'mutant/context'
require 'mutant/context/scope'
2012-08-01 12:34:03 -04:00
require 'mutant/subject'
2013-01-13 16:25:49 -05:00
require 'mutant/subject/method'
require 'mutant/subject/method/instance'
require 'mutant/subject/method/singleton'
require 'mutant/matcher'
require 'mutant/matcher/chain'
require 'mutant/matcher/method'
require 'mutant/matcher/method/finder'
require 'mutant/matcher/method/singleton'
require 'mutant/matcher/method/instance'
require 'mutant/matcher/methods'
require 'mutant/matcher/namespace'
require 'mutant/matcher/scope'
2013-09-08 15:58:39 -04:00
require 'mutant/matcher/filter'
2012-08-14 16:45:34 -04:00
require 'mutant/killer'
require 'mutant/killer/static'
2012-08-14 16:45:34 -04:00
require 'mutant/killer/rspec'
require 'mutant/killer/forking'
2013-01-15 17:46:05 -05:00
require 'mutant/killer/forked'
2012-11-21 18:10:50 -05:00
require 'mutant/strategy'
require 'mutant/strategy/rspec'
2012-08-14 16:45:34 -04:00
require 'mutant/runner'
require 'mutant/runner/config'
require 'mutant/runner/subject'
require 'mutant/runner/mutation'
require 'mutant/cli'
require 'mutant/cli/classifier'
require 'mutant/cli/classifier/namespace'
require 'mutant/cli/classifier/method'
require 'mutant/cli/builder'
2012-08-16 12:02:03 -04:00
require 'mutant/color'
require 'mutant/differ'
require 'mutant/reporter'
require 'mutant/reporter/null'
require 'mutant/reporter/cli'
require 'mutant/reporter/cli/printer'
require 'mutant/reporter/cli/printer/config'
require 'mutant/reporter/cli/printer/subject'
require 'mutant/reporter/cli/printer/killer'
require 'mutant/reporter/cli/printer/mutation'
require 'mutant/zombifier'