Class: Minitest::Heat::Output::Marker
- Inherits:
-
Object
- Object
- Minitest::Heat::Output::Marker
- Defined in:
- lib/minitest/heat/output/marker.rb
Overview
Friendly API for printing consistent markers for the various issue types
Constant Summary collapse
- SYMBOLS =
{ success: '·', slow: '♦', painful: '♦', broken: 'B', error: 'E', skipped: 'S', failure: 'F', reporter: '✖' }.freeze
- STYLES =
{ success: :success, slow: :slow, painful: :painful, broken: :error, error: :error, skipped: :skipped, failure: :failure, reporter: :error }.freeze
Instance Attribute Summary collapse
-
#issue_type ⇒ Object
Returns the value of attribute issue_type.
Instance Method Summary collapse
-
#initialize(issue_type) ⇒ Marker
constructor
A new instance of Marker.
- #token ⇒ Object
Constructor Details
#initialize(issue_type) ⇒ Marker
Returns a new instance of Marker.
32 33 34 |
# File 'lib/minitest/heat/output/marker.rb', line 32 def initialize(issue_type) @issue_type = issue_type end |
Instance Attribute Details
#issue_type ⇒ Object
Returns the value of attribute issue_type.
30 31 32 |
# File 'lib/minitest/heat/output/marker.rb', line 30 def issue_type @issue_type end |
Instance Method Details
#token ⇒ Object
36 37 38 |
# File 'lib/minitest/heat/output/marker.rb', line 36 def token [style, symbol] end |