Class: Mutant::Reporter::CLI::Format::Progressive Private
- Inherits:
-
Mutant::Reporter::CLI::Format
- Object
- Mutant::Reporter::CLI::Format
- Mutant::Reporter::CLI::Format::Progressive
- 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.
Format for progressive non rewindable output
Constant Summary collapse
- REPORT_FREQUENCY =
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.
1.0- REPORT_DELAY =
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.
1 / REPORT_FREQUENCY
- CLEAR_LINE =
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.
ANSI escape sequences
"\e[2K"- CURSOR_UP =
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.
"\e[A"- CURSOR_DOWN =
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.
"\e[B"- ANSI_ESCAPE =
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.
Pattern to strip ANSI escape codes for visual length calculation
/\e\[[0-9;]*[A-Za-z]/
Constants inherited from Mutant::Reporter::CLI::Format
Instance Method Summary collapse
-
#progress(status) ⇒ String
private
Progress representation.
-
#start(env) ⇒ String
private
Start representation.
-
#test_progress(status) ⇒ String
private
Progress representation.
-
#test_start(env) ⇒ String
private
Test start representation.
Methods inherited from Mutant::Reporter::CLI::Format
Instance Method Details
#progress(status) ⇒ 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
108 109 110 |
# File 'lib/mutant/reporter/cli/format.rb', line 108 def progress(status) wrap_progress { format(status_progressive_printer, status) } end |
#start(env) ⇒ 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
94 95 96 |
# File 'lib/mutant/reporter/cli/format.rb', line 94 def start(env) format(Printer::Env, env) end |
#test_progress(status) ⇒ 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
115 116 117 |
# File 'lib/mutant/reporter/cli/format.rb', line 115 def test_progress(status) wrap_progress { format(test_status_progressive_printer, status) } end |
#test_start(env) ⇒ 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.
Test start representation
101 102 103 |
# File 'lib/mutant/reporter/cli/format.rb', line 101 def test_start(env) format(Printer::Test::Env, env) end |