Class: Mutant::Reporter::CLI::Printer::StatusProgressive::Tty Private

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

Instance Method Summary collapse

Instance Method Details

#runObject

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
  bar  = ProgressBar.build(current: amount_mutation_results, total: amount_mutations, width: bar_width)
  line = FORMAT % format_args(bar.percentage, bar.render)
  output.write(colorize(status_color, line))
end