Branch Coverage

blib/lib/HTML/Highlight.pm
Criterion Covered Total %
branch 28 40 70.0


line true false branch
24 0 1 if @_ % 2
46 0 4 unless exists $$self{lc $_[$i]}
51 0 1 if ref $$self{'words'} ne 'ARRAY' or ref $$self{'wildcards'} ne 'ARRAY'
54 0 1 if $$self{'czech_language'}
64 0 1 unless defined $document
66 0 1 if length $document == 0
73 3 1 if ($$self{'colors'}[$cindex]) { }
81 4 40 if (not $doc =~ /(.*?)(<.*?>)(.*)/ls) { }
106 0 1 $sectlen >= $MIN_SECTION_LENGTH ? :
113 0 4 $$self{'czech_language'} ? :
120 1 3 if ($wildcard eq '%') { }
1 2 elsif ($wildcard eq '*') { }
130 3 1 unless ($$self{'context'}{$pattern} or grep /$regexp/il, values %{$$self{'context'};})
133 0 3 if $$self{'debug'}
134 2 1 if ($document =~ /(?:^|\W)(.{0,$chars})(\W+|^)($regexp)(\W+|$)(.{0,$chars})(?:\W|$)/ilsx)
156 0 44 if $$self{'czech_language'}
161 9 35 if ($wildcard eq '%') { }
13 22 elsif ($wildcard eq '*') { }
162 0 9 $$self{'czech_language'} ? :
172 0 44 if $$self{'debug'}