Class: Mutant::Reporter::CLI::Format::Progressive

Inherits:
Mutant::Reporter::CLI::Format show all
Defined in:
lib/mutant/reporter/cli/format.rb

Overview

Format for progressive non rewindable output

Constant Summary collapse

REPORT_FREQUENCY =
1.0
REPORT_DELAY =
1 / REPORT_FREQUENCY

Instance Method Summary collapse

Methods inherited from Mutant::Reporter::CLI::Format

#delay

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.

Return progress representation

Returns:

  • (String)

99
100
101
# File 'lib/mutant/reporter/cli/format.rb', line 99

def progress(status)
  format(Printer::StatusProgressive, 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.

Return start representation

Returns:

  • (String)

89
90
91
# File 'lib/mutant/reporter/cli/format.rb', line 89

def start(env)
  format(Printer::Config, env.config)
end