Class: Mutant::Reporter::CLI Private

Inherits:
Mutant::Reporter show all
Defined in:
lib/mutant/reporter/cli.rb,
lib/mutant/reporter/cli/format.rb,
lib/mutant/reporter/cli/printer.rb,
lib/mutant/reporter/cli/printer/env.rb,
lib/mutant/reporter/cli/printer/config.rb,
lib/mutant/reporter/cli/printer/env_result.rb,
lib/mutant/reporter/cli/printer/test_result.rb,
lib/mutant/reporter/cli/printer/env_progress.rb,
lib/mutant/reporter/cli/printer/subject_result.rb,
lib/mutant/reporter/cli/printer/mutation_result.rb,
lib/mutant/reporter/cli/printer/isolation_result.rb,
lib/mutant/reporter/cli/printer/subject_progress.rb,
lib/mutant/reporter/cli/printer/status_progressive.rb,
lib/mutant/reporter/cli/printer/mutation_progress_result.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.

Reporter that reports in human readable format

Defined Under Namespace

Classes: Format, Printer

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build(output) ⇒ Reporter::CLI

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.

Build reporter

:reek:ManualDispatch



16
17
18
19
20
21
# File 'lib/mutant/reporter/cli.rb', line 16

def self.build(output)
  new(
    output,
    Format::Progressive.new(output.respond_to?(:tty?) && output.tty?)
  )
end

Instance Method Details

#delayFloat

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.

Report delay in seconds



46
47
48
# File 'lib/mutant/reporter/cli.rb', line 46

def delay
  format.delay
end

#progress(status) ⇒ self

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.

Report progress object



38
39
40
41
# File 'lib/mutant/reporter/cli.rb', line 38

def progress(status)
  write(format.progress(status))
  self
end

#report(env) ⇒ self

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.

Report env



65
66
67
68
# File 'lib/mutant/reporter/cli.rb', line 65

def report(env)
  Printer::EnvResult.call(output, env)
  self
end

#start(env) ⇒ self

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.

Report start



28
29
30
31
# File 'lib/mutant/reporter/cli.rb', line 28

def start(env)
  write(format.start(env))
  self
end

#warn(message) ⇒ self

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.

Report warning



55
56
57
58
# File 'lib/mutant/reporter/cli.rb', line 55

def warn(message)
  output.puts(message)
  self
end