vendor/bundle/ruby/1.8/gems/ZenTest-4.6.2/lib/autotest.rb
def consolidate_failures failed
    filters = new_hash_of_arrays

    class_map = Hash[*self.find_order.grep(/^test/).map { |f| # TODO: ugly
                       [path_to_classname(f), f]
                     }.flatten]
    class_map.merge! self.extra_class_map

    failed.each do |method, klass|
      if class_map.has_key? klass then
        filters[class_map[klass]] << method
      else
        output.puts "Unable to map class #{klass} to a file"
      end
    end

    filters
  end
##
# Returns a hash mapping a file name to the known failures for that
# file.
Returns a hash mapping a file name to the known failures for that
file.
Returns a hash mapping a file name to the known failures for that file .
def consolidate_failures failed
    filters = new_hash_of_arrays
    class_map = Hash[*self.find_order.grep(/^test/).map { |f| 
                       [path_to_classname(f), f]
                     }.flatten]
    class_map.merge! self.extra_class_map
    failed.each do |method, klass|
      if class_map.has_key? klass then
        filters[class_map[klass]] << method
      else
        output.puts "Unable to map class #{klass} to a file"
      end
    end
    filters
  end
def consolidate_failures failed filters = new_hash_of_arrays class_map = Hash [ * self . find_order . grep ( / ^test / ) . map { | f | [ path_to_classname ( f ) , f ] } . flatten ] class_map . merge! self . extra_class_map failed . each do | method , klass | if class_map . has_key? klass then filters [ class_map [ klass ] ] << method else output . puts "Unable to map class #{klass} to a file" end end filters end
Returns a hash mapping a file name to the known failures for that
file.
Returns a hash mapping a file name to the known failures for that file .
# TODO: ugly
failed