lib/mutant/reporter/cli/printer.rb in mutant-0.7.7 vs lib/mutant/reporter/cli/printer.rb in mutant-0.7.8
- old
+ new
@@ -201,11 +201,11 @@
#
def run
info 'Mutant configuration:'
info 'Matcher: %s', object.matcher.inspect
info 'Integration: %s', object.integration.name
- info 'Expect Coverage: %0.2f%%', object.expected_coverage.inspect
+ info 'Expect Coverage: %0.2f%%', (object.expected_coverage * 100)
info 'Jobs: %d', object.jobs
info 'Includes: %s', object.includes.inspect
info 'Requires: %s', object.requires.inspect
self
end
@@ -243,11 +243,11 @@
info 'Alive: %s', amount_mutations_alive
info 'Runtime: %0.2fs', runtime
info 'Killtime: %0.2fs', killtime
info 'Overhead: %0.2f%%', overhead_percent
status 'Coverage: %0.2f%%', coverage_percent
- status 'Expected: %0.2f%%', env.config.expected_coverage
+ status 'Expected: %0.2f%%', (env.config.expected_coverage * 100)
self
end
private
@@ -256,10 +256,10 @@
# @return [Float]
#
# @api private
#
def coverage_percent
- coverage * 100
+ (coverage * 100).to_f
end
# Return overhead percent
#
# @return [Float]