Simply blacklist pattern building in matcher
This commit is contained in:
parent
c45a91534d
commit
bdb1d86ea4
1 changed files with 2 additions and 3 deletions
|
@ -6,9 +6,8 @@ module Mutant
|
|||
include Equalizer.new(:identification)
|
||||
|
||||
# Methods within rbx kernel directory are precompiled and their source
|
||||
# cannot be accessed via reading source location
|
||||
SKIP_METHODS = %w[kernel/ (eval)].freeze
|
||||
BLACKLIST = /\A#{Regexp.union(*SKIP_METHODS)}/.freeze
|
||||
# cannot be accessed via reading source location. Same for methods created by eval.
|
||||
BLACKLIST = %r{\Akernel/|(eval)}.freeze
|
||||
|
||||
# Enumerate matches
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue