Class: XcodeResultBundleProcessor::TestSummaries::FailureSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/xcoderesultbundleprocessor/test_summaries/test_summaries.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.parse(failure_summary) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/xcoderesultbundleprocessor/test_summaries/test_summaries.rb', line 23

def self.parse(failure_summary)
  FailureSummary.new(
      file_name:   failure_summary['FileName'],
      line_number: failure_summary['LineNumber'],
      message:     failure_summary['Message']
  )
end

Instance Method Details

#locationObject



31
32
33
# File 'lib/xcoderesultbundleprocessor/test_summaries/test_summaries.rb', line 31

def location
  "#{file_name}:#{line_number}"
end