class Minitest::CompositeReporter

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

# sig/minitest.rbs

class Minitest::CompositeReporter < Minitest::AbstractReporter
  
  type Minitest__CompositeReporter_<<_reporter = Minitest::ProgressReporter | Minitest::SummaryReporter | Minitest::SuppressedSummaryReporter | Rails::TestUnitReporter
  
  def <<: (Minitest__CompositeReporter_<<_reporter reporter) -> untyped
  def initialize: (*Array[] reporters) -> void
  def prerecord: (Class klass, String name) -> untyped
  def record: (Minitest::Result result) -> untyped
  def start: () -> untyped
end

def << reporter

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

type Minitest__CompositeReporter_<<_reporter = Minitest::ProgressReporter | Minitest::SummaryReporter | Minitest::SuppressedSummaryReporter | Rails::TestUnitReporter

def <<: (Minitest__CompositeReporter_<<_reporter reporter) -> untyped

This signature was generated using 9 samples from 2 applications.

def << reporter
  self.reporters << reporter
end

def initialize *reporters # :nodoc:

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

def initialize: (* reporters) -> void

This signature was generated using 2 samples from 1 application.

: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:

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

def prerecord: (Class klass, String name) -> untyped

This signature was generated using 10 samples from 1 application.

: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) -> untyped

This signature was generated using 7 samples 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:

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

def start: () -> untyped

This signature was generated using 4 samples from 1 application.

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