Branch Coverage

blib/lib/Log/Fu/Chomp.pm
Criterion Covered Total %
branch 16 28 57.1


line true false branch
51 0 0 if (delete $Handlers{$match})
60 2 18 if (%Handlers)
62 0 2 if (defined $code and ref $code ne 'CODE') { }
1 1 elsif (defined $code) { }
71 1 0 if (index($module, $key) >= 0)
81 16 2 unless $Log::Fu::Chomp::Config{$HKEY_STRIP}
82 0 2 if $Log::Fu::NO_STRIP
86 2 0 if ($maxwidth = $Log::Fu::Chomp::Config{$HKEY_STRIP_WIDTH})
87 0 2 if length $sub < $maxwidth
95 2 0 if $tlns
99 1 0 if ($Log::Fu::Chomp::Config{$HKEY_STRIP_TLNS} and $tlns_len - 1 and length $tlns > $tlns_len)
106 2 0 if ($Log::Fu::Chomp::Config{$HKEY_MAX_COMPONENTS})
115 0 0 if (length $comp <= $new_len_min) { }
125 1 1 if ($Log::Fu::Chomp::Config{$HKEY_STRIP_SUB} and length $sub_basename > $sub_len_min)