class Minitest::Reporters::DefaultReporter

def get_source_location(result)

def get_source_location(result)
  if result.respond_to? :klass
    result.source_location
  else
    result.method(result.name).source_location
  end
end