Fix style issues in Mutant::Reporter*

This commit is contained in:
Markus Schirp 2013-07-28 19:02:01 +02:00
parent a9ae9932ec
commit c64bb2a6d3
2 changed files with 14 additions and 8 deletions

View file

@ -54,12 +54,12 @@ module Mutant
# Reporter for noop mutations
class Noop < self
MESSAGE = [
'Parsed subject AST:',
'%s',
'Unparsed source:',
'%s',
].join("\n")
MESSAGE = [
'Parsed subject AST:',
'%s',
'Unparsed source:',
'%s',
].join("\n")
private
@ -70,7 +70,11 @@ module Mutant
# @api private
#
def details
sprintf(MESSAGE, mutation.subject.node.inspect, mutation.original_source)
sprintf(
MESSAGE,
mutation.subject.node.inspect,
mutation.original_source
)
end
end # Noop

View file

@ -59,6 +59,8 @@ module Mutant
object.subject
end
FORMAT = '(%02d/%02d) %3d%% - %0.02fs'.freeze
# Print stats
#
# @return [undefned
@ -66,7 +68,7 @@ module Mutant
# @api private
#
def print_stats
status('(%02d/%02d) %3d%% - %0.02fs', amount_kills, amount_mutations, coverage, time)
status(FORMAT, amount_kills, amount_mutations, coverage, time)
end
# Print progress bar finish