class Minitest::CompositeReporter

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:

: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