Class: Mutant::Reporter::CLI Private
- Inherits:
-
Mutant::Reporter
- Object
- Mutant::Reporter
- Mutant::Reporter::CLI
- 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/mutation.rb,
lib/mutant/reporter/cli/printer/env_result.rb,
lib/mutant/reporter/cli/printer/env_progress.rb,
lib/mutant/reporter/cli/printer/subject_result.rb,
lib/mutant/reporter/cli/printer/coverage_result.rb,
lib/mutant/reporter/cli/printer/mutation_result.rb,
lib/mutant/reporter/cli/printer/isolation_result.rb,
lib/mutant/reporter/cli/printer/status_progressive.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
Class Method Summary collapse
-
.build(output) ⇒ Reporter::CLI
private
Build reporter.
Instance Method Summary collapse
-
#delay ⇒ Float
private
Report delay in seconds.
-
#progress(status) ⇒ self
private
Report progress object.
-
#report(env) ⇒ self
private
Report env.
-
#start(env) ⇒ self
private
Report start.
-
#warn(message) ⇒ self
private
Report warning.
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
14 15 16 17 18 19 |
# File 'lib/mutant/reporter/cli.rb', line 14 def self.build(output) new( output, Format::Progressive.new(output.respond_to?(:tty?) && output.tty?) ) end |
Instance Method Details
#delay ⇒ Float
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
44 45 46 |
# File 'lib/mutant/reporter/cli.rb', line 44 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
36 37 38 39 |
# File 'lib/mutant/reporter/cli.rb', line 36 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
63 64 65 66 |
# File 'lib/mutant/reporter/cli.rb', line 63 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
26 27 28 29 |
# File 'lib/mutant/reporter/cli.rb', line 26 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
53 54 55 56 |
# File 'lib/mutant/reporter/cli.rb', line 53 def warn() output.puts() self end |