You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: testrunner.rb
    path of file: ./repos/ruby-packer/ruby/gems/test-unit-3.3.4/lib/test/unit/ui/emacs
    
    the code of the file until where you have to start completion: require 'test/unit/ui/console/testrunner'

module Test
  module Unit
    module UI
   
    
          def format_fault_failure(failure)
            if failure.location.size == 1
              location = failure.location[0]
              location_display = location.sub(/\A(.+:\d+).*/, ' [\\1]')
            else
              location_display = "\n" + failure.location.join("\n")
            end