module Minitest::Reportable

def class_name # :nodoc:

:nodoc:
def class_name # :nodoc:
  raise NotImplementedError, "subclass responsibility"
end

def error?

def error?
  self.failures.any? { |f| UnexpectedError === f }
end

def location

def location
  loc = " [#{self.failure.location}]" unless passed? or error?
  "#{self.class_name}##{self.name}#{loc}"
end

def passed?

def passed?
  not self.failure
end

def result_code

def result_code
  self.failure and self.failure.result_code or "."
end

def skipped?

def skipped?
  self.failure and Skip === self.failure
end