mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/securerandom] Remove no longer used helper methods
Unused since r59801,782b2050b8, or52c8e7a85e.38fc2c4427
This commit is contained in:
parent
00a941ac4b
commit
bbfefd45c6
1 changed files with 0 additions and 19 deletions
|
|
@ -1,7 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'test/unit'
|
||||
require 'securerandom'
|
||||
require 'tempfile'
|
||||
|
||||
# This testcase does NOT aim to test cryptographically strongness and randomness.
|
||||
class TestSecureRandom < Test::Unit::TestCase
|
||||
|
|
@ -156,24 +155,6 @@ end
|
|||
end
|
||||
end
|
||||
|
||||
def protect
|
||||
begin
|
||||
yield
|
||||
rescue NotImplementedError
|
||||
# ignore
|
||||
end
|
||||
end
|
||||
|
||||
def remove_feature(basename)
|
||||
$LOADED_FEATURES.delete_if { |path|
|
||||
if File.basename(path) == basename
|
||||
$LOAD_PATH.any? { |dir|
|
||||
File.exist?(File.join(dir, basename))
|
||||
}
|
||||
end
|
||||
}
|
||||
end
|
||||
|
||||
def assert_in_range(range, result, mesg = nil)
|
||||
assert(range.cover?(result), build_message(mesg, "Expected #{result} to be in #{range}"))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue