Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused testlib methods #4983

Merged
merged 2 commits into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions tool/lib/test/unit/assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -344,20 +344,6 @@ def capture_io
raise NoMethodError, "use capture_output"
end

##
# Returns details for exception +e+

def exception_details e, msg
[
"#{msg}",
"Class: <#{e.class}>",
"Message: <#{e.message.inspect}>",
"---Backtrace---",
"#{Test::filter_backtrace(e.backtrace).join("\n")}",
"---------------",
].join "\n"
end

##
# Fails with +msg+

Expand Down
14 changes: 0 additions & 14 deletions tool/lib/test/unit/testcase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,20 +236,6 @@ def self.reset # :nodoc:

reset

##
# Make diffs for this TestCase use #pretty_inspect so that diff
# in assert_equal can be more details. NOTE: this is much slower
# than the regular inspect but much more usable for complex
# objects.

def self.make_my_diffs_pretty!
require 'pp'

define_method :mu_pp do |o|
o.pretty_inspect
end
end

def self.inherited klass # :nodoc:
@@test_suites[klass] = true
super
Expand Down