class Minitest::Result
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/minitest.rbs class Minitest::Result < Minitest::Runnable def self.from: (TypedOperation::BaseTest runnable) -> Minitest::Result end
def self.from runnable
Experimental RBS support (using type sampling data from the type_fusion
project).
def self.from: (TypedOperation::BaseTest runnable) -> Minitest::Result
This signature was generated using 1 sample from 1 application.
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 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