class Minitest::Result
def self.from runnable
def self.from runnable o = runnable r = self.new o.name r.klass = o.class.name r.assertions = o.assertions r.failures = o.failures.dup r.time = o.time r.source_location = o.method(o.name).source_location rescue ["unknown", -1] r end
def class_name # :nodoc:
def class_name # :nodoc: self.klass # for Minitest::Reportable end
def error?
def error? self.failures.any? { |f| UnexpectedError === f } end
def to_s # :nodoc:
def to_s # :nodoc: return location if passed? and not skipped? failures.map { |failure| "#{failure.result_label}:\n#{self.location}:\n#{failure.message}\n" }.join "\n" end