Method: Mutant::Reporter::CLI::Printer::Mutation#run

Defined in:
lib/mutant/reporter/cli/printer/mutation.rb

#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 report printer

Returns:

  • (undefined)
[View source]

29
30
31
32
33
34
35
36
37
38
# File 'lib/mutant/reporter/cli/printer/mutation.rb', line 29

def run
  diff = object.diff
  diff = color? ? diff.colorized_diff : diff.diff

  if diff
    output.write(diff)
  else
    print_no_diff_message
  end
end