Class: Mutant::Reporter::CLI::Printer::Mutation

Inherits:
Mutant::Reporter::CLI::Printer show all
Defined in:
lib/mutant/reporter/cli/printer/mutation.rb

Overview

Mutation printer

Direct Known Subclasses

Diff, Noop

Defined Under Namespace

Classes: Diff, Noop

Constant Summary

Constants inherited from Mutant::Reporter::CLI::Printer

REGISTRY

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Mutant::Reporter::CLI::Printer

finalize, handle, run, visit

Class Method Details

.build(runner, output) ⇒ Printer::Mutation

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 printer

Parameters:

Returns:



21
22
23
24
# File 'lib/mutant/reporter/cli/printer/mutation.rb', line 21

def self.build(runner, output)
  mutation = runner.mutation
  lookup(mutation.class).new(runner, output)
end

Instance Method Details

#runundefined

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.

Run mutation printer

Returns:

  • (undefined)


32
33
34
35
# File 'lib/mutant/reporter/cli/printer/mutation.rb', line 32

def run
  status('%s', mutation.identification)
  puts(details)
end