lib/mutant/reporter/cli/printer/env_progress.rb in mutant-0.8.24 vs lib/mutant/reporter/cli/printer/env_progress.rb in mutant-0.9.0
- old
+ new
@@ -5,39 +5,35 @@
class CLI
class Printer
# Env progress printer
class EnvProgress < self
delegate(
- :coverage,
- :amount_subjects,
- :amount_mutations,
+ :amount_mutation_results,
:amount_mutations_alive,
:amount_mutations_killed,
- :amount_mutation_results,
- :runtime,
+ :coverage,
+ :env,
:killtime,
:overhead,
- :env
+ :runtime
)
FORMATS = 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 ]
+ [: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 ]
])
# Run printer
#
# @return [undefined]
def run
- visit(Config, env.config)
+ visit(Env, env)
FORMATS.each do |report, format, value|
__send__(report, format, __send__(value))
end
end