Change reporter to skip the header if there are no generic mutators

This commit is contained in:
Dan Kubb 2013-11-03 12:19:09 -08:00
parent 9fd2b197ed
commit ad56db3943

View file

@ -117,6 +117,7 @@ module Mutant
#
def print_generic_stats
stats = generic_stats.to_a.sort_by(&:last)
return if stats.empty?
info('Nodes handled by generic mutator (type:occurrences):')
stats.reverse_each do |type, amount|
info('%-10s: %d', type, amount)