class Minitest::CompositeReporter

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

# sig/minitest.rbs

class Minitest::CompositeReporter < Minitest::AbstractReporter
  def record: (Minitest::Result result) -> ["Array", ["Minitest::SummaryReporter", "Minitest::ProgressReporter"]]
end

def << reporter

def << reporter
  self.reporters << reporter
end

def initialize *reporters # :nodoc:

:nodoc:
def initialize *reporters # :nodoc:
  super()
  self.reporters = reporters
end

def io # :nodoc:

:nodoc:
def io # :nodoc:
  reporters.first.io
end

def passed? # :nodoc:

:nodoc:
def passed? # :nodoc:
  self.reporters.all?(&:passed?)
end

def prerecord klass, name # :nodoc:

:nodoc:
def prerecord klass, name # :nodoc:
  self.reporters.each do |reporter|
    # TODO: remove conditional for minitest 6
    reporter.prerecord klass, name if reporter.respond_to? :prerecord
  end
end

def record result # :nodoc:

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

def record: (Minitest::Result result) -> ["Array", ["Minitest::SummaryReporter", "Minitest::ProgressReporter"]]

This signature was generated using 1 sample from 1 application.

:nodoc:
def record result # :nodoc:
  self.reporters.each do |reporter|
    reporter.record result
  end
end

def report # :nodoc:

:nodoc:
def report # :nodoc:
  self.reporters.each(&:report)
end

def start # :nodoc:

:nodoc:
def start # :nodoc:
  self.reporters.each(&:start)
end