Branch Coverage

blib/lib/IRC/Formatting/HTML/Output.pm
Criterion Covered Total %
branch 43 48 89.5


line true false branch
22 20 20 unless defined $text and length $text
24 4 16 if ($use_classes) { }
42 6 34 if ($format_sequence eq $IRC::Formatting::HTML::Output::BOLD) { }
4 30 elsif ($format_sequence eq $IRC::Formatting::HTML::Output::UNDERLINE) { }
8 22 elsif ($format_sequence eq $IRC::Formatting::HTML::Output::INVERSE) { }
0 22 elsif ($format_sequence eq $IRC::Formatting::HTML::Output::RESET) { }
5 17 elsif ($format_sequence =~ /$IRC::Formatting::HTML::Output::COLORM/) { }
63 0 5 if (not defined $_fg) { }
0 5 elsif (not defined $_bg) { }
80 8 8 if ($i) { }
81 2 6 if ($italic_invert) { }
91 9 7 if defined $_fg and $IRC::Formatting::HTML::Output::COLORS[$_fg]
92 9 7 if defined $_bg and $IRC::Formatting::HTML::Output::COLORS[$_bg]
93 7 9 if $b
94 4 12 if $u
104 1 3 if ($i) { }
105 0 1 if ($italic_invert) { }
115 2 2 if defined $_fg and $IRC::Formatting::HTML::Output::COLORS[$_fg]
116 2 2 if defined $_bg and $IRC::Formatting::HTML::Output::COLORS[$_bg]
117 1 3 if $b
118 1 3 if $u
125 2 10 if $italic
126 1 11 if $classes
141 0 12 unless $string