1
0
Fork 0
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,
or 52c8e7a85e.

38fc2c4427
This commit is contained in:
Nobuyoshi Nakada 2021-12-05 22:50:55 +09:00
parent 00a941ac4b
commit bbfefd45c6
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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