⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
ruby
/
gems
/
3.0.0
/
gems
/
rbs-1.0.4
/
lib
/
rbs
/
test
/
View File Name :
setup_helper.rb
module RBS module Test module SetupHelper class InvalidSampleSizeError < StandardError attr_reader :string def initialize(string) @string = string super("Sample size should be a positive integer: `#{string}`") end end DEFAULT_SAMPLE_SIZE = 100 def get_sample_size(string) case string when "" DEFAULT_SAMPLE_SIZE when 'ALL' nil else int_size = string.to_i raise InvalidSampleSizeError.new(string) unless int_size.positive? int_size end end def to_double_class(double_suite) return nil unless double_suite case double_suite.downcase.strip when 'rspec' ['::RSpec::Mocks::Double'] when 'minitest' ['::Minitest::Mock'] else RBS.logger.warn "Unknown test suite - defaults to nil" nil end end end end end