Class: Mutant::Reporter::CLI::Printer::EnvProgress Private

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

rubocop:disable SpaceInsideBrackets

IceNine.deep_freeze([
  [:info,   'Subjects:        %s',      :amount_subjects          ],
  [:info,   'Mutations:       %s',      :amount_mutations         ],
  [:info,   'Results:         %s',      :amount_mutation_results  ],
  [:info,   'Kills:           %s',      :amount_mutations_killed  ],
  [:info,   'Alive:           %s',      :amount_mutations_alive   ],
  [:info,   'Runtime:         %0.2fs',  :runtime                  ],
  [:info,   'Killtime:        %0.2fs',  :killtime                 ],
  [:info,   'Overhead:        %0.2f%%', :overhead_percent         ],
  [:info,   'Mutations/s:     %0.2f',   :mutations_per_second     ],
  [:status, 'Coverage:        %0.2f%%', :coverage_percent         ]
])

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

NL

Instance Method Summary collapse

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)


37
38
39
40
41
42
# File 'lib/mutant/reporter/cli/printer/env_progress.rb', line 37

def run
  visit(Config, env.config)
  FORMATS.each do |report, format, value|
    __send__(report, format, __send__(value))
  end
end