Class: Mutant::Reporter::CLI::Format Private
- Inherits:
-
Object
- Object
- Mutant::Reporter::CLI::Format
- Includes:
- Unparser::AbstractType
- Defined in:
- lib/mutant/reporter/cli/format.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
CLI output format
rubocop:disable Style/FormatString
Direct Known Subclasses
Defined Under Namespace
Classes: Output, Progressive
Constant Summary collapse
- DEFAULT_TERMINAL_WIDTH =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
80
Instance Method Summary collapse
-
#delay ⇒ Float
private
Report delay in seconds.
-
#progress ⇒ String
private
Progress representation.
-
#start ⇒ String
private
Start representation.
-
#terminal_width ⇒ Integer
private
Dynamic terminal width - queries current size on each call.
-
#test_progress ⇒ String
private
Progress representation.
Instance Method Details
#delay ⇒ Float
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Report delay in seconds
47 48 49 |
# File 'lib/mutant/reporter/cli/format.rb', line 47 def delay self.class::REPORT_DELAY end |
#progress ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Progress representation
37 |
# File 'lib/mutant/reporter/cli/format.rb', line 37 abstract_method :progress |
#start ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Start representation
32 |
# File 'lib/mutant/reporter/cli/format.rb', line 32 abstract_method :start |
#terminal_width ⇒ Integer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Dynamic terminal width - queries current size on each call
19 20 21 22 23 24 25 |
# File 'lib/mutant/reporter/cli/format.rb', line 19 def terminal_width return DEFAULT_TERMINAL_WIDTH unless tty && output_io.respond_to?(:winsize) output_io.winsize.last rescue Errno::ENOTTY, Errno::EOPNOTSUPP DEFAULT_TERMINAL_WIDTH end |
#test_progress ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Progress representation
42 |
# File 'lib/mutant/reporter/cli/format.rb', line 42 abstract_method :test_progress |