Class: Mutant::Reporter::CLI::Printer::StatusProgressive::Tty Private
- Inherits:
-
Mutant::Reporter::CLI::Printer::StatusProgressive
- Object
- Mutant::Reporter::CLI::Printer
- Mutant::Reporter::CLI::Printer::StatusProgressive
- Mutant::Reporter::CLI::Printer::StatusProgressive::Tty
- Defined in:
- lib/mutant/reporter/cli/printer/status_progressive.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.
TTY output format with progress bar
Constant Summary collapse
- FORMAT =
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.
'%s %d/%d (%5.1f%%) %s alive: %d %0.1fs %0.2f/s'- MAX_BAR_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.
40- PREFIX =
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.
'RUNNING'- PERCENTAGE_ESTIMATE =
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.
99.9
Constants inherited from Mutant::Reporter::CLI::Printer
Instance Method Summary collapse
- #run ⇒ Object private
Methods inherited from Mutant::Reporter::CLI::Printer
Methods included from Procto
Instance Method Details
#run ⇒ Object
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.
52 53 54 55 56 |
# File 'lib/mutant/reporter/cli/printer/status_progressive.rb', line 52 def run = ProgressBar.build(current: amount_mutation_results, total: amount_mutations, width: ) line = FORMAT % format_args(.percentage, .render) output.write(colorize(status_color, line)) end |