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

Instance Method Summary collapse

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

#report

Instance Method Details

#progress(collector) ⇒ 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)


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

def progress(collector)
  last_mutation_result = collector.last_mutation_result
  return EMPTY_STRING unless last_mutation_result
  format(Printer::MutationProgressResult, last_mutation_result)
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)


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

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