class Minitest::Result

def self.from runnable

Experimental RBS support (using type sampling data from the type_fusion project).

def self.from: ((RBS::NilableTest | AnalyzerTest | RBS::RBSTest) runnable) -> Minitest::Result

This signature was generated using 10 samples 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.metadata   = o.metadata if o.metadata?
  r.source_location = o.method(o.name).source_location rescue ["unknown", -1]
  r
end