Branch Coverage

blib/lib/Log/MultiChannel.pm
Criterion Covered Total %
branch 39 68 57.3


line true false branch
264 6 0 unless ($$log{'printHandler'})
267 1 5 if ($$log{'preserve'})
268 1 0 if (-f $$log{'filename'})
272 0 6 unless open $$log{'fh'}, ">$$log{'filename'}"
295 0 0 unless ($$log{'printHandler'})
364 7 3 if ($$channels{$channelName}{'logs'}) { }
381 1 0 if ($_[1]) { }
401 0 0 if ($$log{'fh'})
407 5 0 if ($$log{'fh'})
414 1 1 if ($$channels{$_[0]}{'logs'}) { }
454 5 10 if ($year != $_[3]{'currentYear'} or $mday != $_[3]{'currentmday'})
466 1 14 if ($_[7])
473 0 15 if ($i > 9)
478 1 14 if ($_[7])
502 0 1 if ($_[7])
509 0 1 if ($i > 9)
514 0 1 if ($_[7])
526 0 1 if ($_[7])
531 0 1 if ($i > 9)
536 0 1 if ($_[7])
552 0 14 unless ($_[0])
554 1 13 unless ($_[1])
557 3 11 unless ($$channels{$_[0]}{'logs'})
558 3 0 if ($defaultLog) { }
572 13 1 if ($$channels{$_[0]}{'state'} or $$channels{$_[0]}{"pkg-$pkg"})
581 17 24 if ($$log{'fh'})
582 17 0 if ($$log{'printHandler'})
585 1 16 if ($$log{'colorOn'})
592 0 17 if ($$log{'limit'} and $$log{'count'} > $$log{'limit'})
608 0 0 if ($$log{'fh'})
611 0 0 if ($$log{'preserve'})
614 0 0 unless open $$log{'fh'}, ">$$log{'filename'}"
638 0 1 if ($$log{'oldDir'})
644 0 0 unless (-d $$log{'oldDir'})