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

Inherits:
Mutant::Reporter::CLI::Format show all
Defined in:
lib/mutant/reporter/cli/format.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.

Format for framed rewindable output

Constant Summary collapse

BUFFER_FLAGS =

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.

'a+'.freeze
REPORT_FREQUENCY =

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.

20.0
REPORT_DELAY =

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.

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)


117
118
119
# File 'lib/mutant/reporter/cli/format.rb', line 117

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)


108
109
110
# File 'lib/mutant/reporter/cli/format.rb', line 108

def start(_env)
  tput.prepare
end