Branch Coverage

blib/lib/HTML/BBReverse.pm
Criterion Covered Total %
branch 84 136 61.7


line true false branch
12 1 0 $#_ % 2 ? :
28 1 24 unless $_
37 0 0 if $alwd{'code'} or $alwd{'list'} or $alwd{'html'}
38 24 0 if ($alwd{'b'})
41 24 0 if ($alwd{'i'})
44 24 0 if ($alwd{'u'})
47 24 0 if ($alwd{'img'})
50 24 0 if ($alwd{'url'})
53 24 0 if ($alwd{'email'})
55 24 0 if ($alwd{'size'})
58 24 0 if ($alwd{'color'})
61 24 0 if ($alwd{'quote'})
75 6 0 if $$self{'no_jslink'}
83 1 24 unless $_
87 0 0 if $alwd{'code'} or $alwd{'list'} or $alwd{'html'}
88 24 0 if ($alwd{'b'})
91 24 0 if ($alwd{'i'})
94 24 0 if ($alwd{'u'})
97 24 0 if ($alwd{'img'})
100 24 0 if ($alwd{'email'})
102 24 0 if ($alwd{'url'})
105 24 0 if ($alwd{'size'})
108 24 0 if ($alwd{'color'})
111 24 0 if ($alwd{'quote'})
117 0 24 unless ($$self{'reverse_for_edit'})
139 6 10 $1 eq '/' ? :
141 3 13 if ($be4 and $incode) { }
0 13 elsif ($be4 and $inlist and $inlist != $liststart) { }
0 23 elsif ($be4 and $inhtml) { }
142 0 3 if (lc $tag ne 'code' and not $end)
151 0 0 if (lc $tag ne 'html' and not $end)
162 6 10 if $be4
164 16 0 if ($acode and not $inhtml)
165 3 13 if (not $incode and lc $tag eq 'code' and not $end) { }
3 10 elsif ($incode and lc $tag eq 'code' and $end) { }
176 12 4 if ($alist and not $incode and not $inhtml)
177 3 9 if (lc $tag eq 'list' and not $end) { }
3 6 elsif (lc $tag eq 'list' and $end) { }
3 3 elsif (lc $tag eq '*') { }
178 0 3 if not $inlist and $$self{'in_paragraph'}
179 3 0 unless $opt
180 0 3 if $opt and $opt eq '1'
181 0 3 if $opt and lc $opt eq 'a'
187 0 3 if $inlist == 1 and $$self{'in_paragraph'}
191 0 3 if $liststart == $inlist
198 12 4 if ($ahtml and not $incode)
199 0 12 if (not $inhtml and lc $tag eq 'html' and not $end) { }
0 12 elsif ($inhtml and lc $tag eq 'html' and $end) { }
210 1 0 unless $done or $app
216 0 1 if $_[0]
218 0 1 if $_[2]
240 0 15 if ($be4 and $inhtml)
241 0 0 if $code ne ''
246 9 6 if $be4
248 15 0 if ($acode and not $inhtml)
249 3 12 if (not $incode and $code eq 'Code: ') { }
3 18 elsif ($incode and $code eq ' ') { }
260 12 3 if ($alist and not $incode and not $inhtml)
261 3 9 if ($code eq '
    ' or $code eq '
      ' or $code eq '
        ') { }
3 6 elsif ($code eq '') { }
3 3 elsif ($code eq '
  • ') { }
  • 262 3 0 if $code eq '
      '
    263 0 3 if $code eq '
      '
    264 0 3 if $code eq '
      '
    277 12 3 if ($ahtml and not $incode)
    278 0 12 if (not $inhtml and $code eq '') { }
    0 24 elsif ($inhtml and $code eq '') { }
    288 0 15 if not $done and $code ne ''