Class: Mutant::Reporter::CLI::Format::Framed

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

Overview

Format for framed rewindable output

Constant Summary collapse

BUFFER_FLAGS =
'a+'.freeze
REPORT_FREQUENCY =
20.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.

Format progress

Parameters:

  • status (Runner::Status)

Returns:

  • (String)


135
136
137
# File 'lib/mutant/reporter/cli/format.rb', line 135

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

Format start

Parameters:

Returns:

  • (String)


124
125
126
# File 'lib/mutant/reporter/cli/format.rb', line 124

def start(_env)
  tput.prepare
end