Class: Mutant::Reporter::CLI::Printer::Env Private

Inherits:
Mutant::Reporter::CLI::Printer show all
Defined in:
lib/mutant/reporter/cli/printer/env.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.

Env printer

Constant Summary collapse

FORMATS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

[
  [:info,   'Subjects:        %s',        :amount_subjects       ],
  [:info,   'All-Tests:       %s',        :amount_all_tests      ],
  [:info,   'Available-Tests: %s',        :amount_available_tests],
  [:info,   'Selected-Tests:  %s',        :amount_selected_tests ],
  [:info,   'Tests/Subject:   %0.2f avg', :test_subject_ratio    ],
  [:info,   'Mutations:       %s',        :amount_mutations      ]
].each(&:freeze)

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

NL

Instance Method Summary collapse

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

#call

Methods included from Procto

included

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 printer

Returns:

  • (undefined)


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

def run
  info('Mutant environment:')
  visit(Config, config)
  FORMATS.each do |report, format, value|
    __send__(report, format, __send__(value))
  end
end