Class: Minitest::Heat::Output::Marker

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_typeObject

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

#tokenObject



36
37
38
# File 'lib/minitest/heat/output/marker.rb', line 36

def token
  [style, symbol]
end