Class: Mutant::Reporter::CLI

Inherits:
Mutant::Reporter show all
Defined in:
lib/mutant/reporter/cli.rb,
lib/mutant/reporter/cli/report.rb,
lib/mutant/reporter/cli/printer.rb,
lib/mutant/reporter/cli/progress.rb,
lib/mutant/reporter/cli/registry.rb,
lib/mutant/reporter/cli/progress/noop.rb,
lib/mutant/reporter/cli/report/config.rb,
lib/mutant/reporter/cli/report/subject.rb,
lib/mutant/reporter/cli/progress/config.rb,
lib/mutant/reporter/cli/report/mutation.rb,
lib/mutant/reporter/cli/progress/subject.rb,
lib/mutant/reporter/cli/progress/mutation.rb

Overview

Reporter that reports in human readable format

Defined Under Namespace

Classes: Printer, Progress, Registry, Report

Constant Summary collapse

NL =
"\n".freeze

Instance Method Summary collapse

Instance Method Details

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

Parameters:

  • object (Object)

Returns:

  • (self)


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

def progress(object)
  Progress.run(output, object)
  self
end

#report(object) ⇒ 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 object

Parameters:

  • object (Object)

Returns:

  • (self)


43
44
45
46
# File 'lib/mutant/reporter/cli.rb', line 43

def report(object)
  Report.run(output, object)
  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

Parameters:

  • message (String)

Returns:

  • (self)


30
31
32
33
# File 'lib/mutant/reporter/cli.rb', line 30

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