Class: Minitest::Heat::Output::Issue
- Inherits:
-
Object
- Object
- Minitest::Heat::Output::Issue
- Defined in:
- lib/minitest/heat/output/issue.rb
Overview
Formats issues to output based on the issue type
Instance Attribute Summary collapse
-
#issue ⇒ Object
rubocop:disable Metrics/ClassLength.
-
#locations ⇒ Object
rubocop:disable Metrics/ClassLength.
Instance Method Summary collapse
-
#initialize(issue) ⇒ Issue
constructor
A new instance of Issue.
- #tokens ⇒ Object
Constructor Details
#initialize(issue) ⇒ Issue
Returns a new instance of Issue.
10 11 12 13 |
# File 'lib/minitest/heat/output/issue.rb', line 10 def initialize(issue) @issue = issue @locations = issue.locations end |
Instance Attribute Details
#issue ⇒ Object
rubocop:disable Metrics/ClassLength
8 9 10 |
# File 'lib/minitest/heat/output/issue.rb', line 8 def issue @issue end |
#locations ⇒ Object
rubocop:disable Metrics/ClassLength
8 9 10 |
# File 'lib/minitest/heat/output/issue.rb', line 8 def locations @locations end |
Instance Method Details
#tokens ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/minitest/heat/output/issue.rb', line 15 def tokens case issue.type when :error, :broken then exception_tokens when :failure then failure_tokens when :skipped then skipped_tokens when :painful, :slow then slow_tokens end end |