From ad56db39439f8228b8328db171e26cb6f0fa4178 Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Sun, 3 Nov 2013 12:19:09 -0800 Subject: [PATCH] Change reporter to skip the header if there are no generic mutators --- lib/mutant/reporter/cli/printer/config.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mutant/reporter/cli/printer/config.rb b/lib/mutant/reporter/cli/printer/config.rb index 1d0fcafb..57697190 100644 --- a/lib/mutant/reporter/cli/printer/config.rb +++ b/lib/mutant/reporter/cli/printer/config.rb @@ -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)