spec/support/corpus.rb
# Count mutations and check error results against whitelist
#
# @param path [Pathname] path responsible for exception
#
# @return [Integer] mutations generated
Count mutations and check error results against whitelist
Count mutations and check error results against whitelist
def count_mutations_and_check_errors(path)
        relative_path = path.relative_path_from(repo_path)
        count = count_mutations(path)
        expected_errors.assert_success(relative_path)
        count
      rescue Exception => exception 
        expected_errors.assert_error(relative_path, exception)
        DEFAULT_MUTATION_COUNT
      end
def count_mutations_and_check_errors ( path ) relative_path = path . relative_path_from ( repo_path ) count = count_mutations ( path ) expected_errors . assert_success ( relative_path ) count rescue Exception => exception expected_errors . assert_error ( relative_path , exception ) DEFAULT_MUTATION_COUNT end
Count mutations and check error results against whitelist
Count mutations and check error results against whitelist
# rubocop:disable Lint/RescueException
None
Integer
path
path responsible for exception
path responsible for exception