Condition Coverage

blib/lib/HTML/BBCode.pm
Criterion Covered Total %
condition 37 44 84.0


and 3 conditions

line !l l&&!r l&&r condition
236 75 9 0 $$self{'_skip_nest'} ne '' and $end ne "[/$$self{'_skip_nest'}]"
80 3 1 $$self{'_in_code_block'} and $end ne '[/code]'
280 65 25 9 _dont_nest($self, $tag) and $tag eq 'img'
294 112 5 6 $$self{'options'}{'linebreaks'} and $$self{'_in_code_block'} == 0
304 74 9 0 "[/$$self{'_skip_nest'}]" eq $end and $$self{'_nest_count'} > 1
328 184 9 9 "[/$$self{'_skip_nest'}]" eq $end and $$self{'_nest_count'} > 0
334 0 20 81 $tag and $end eq "[/$tag]"
339 0 72 9 defined $$self{'_skip_nest'} and $tag eq $$self{'_skip_nest'}
369 38 14 4 $tag eq 'email' || $tag eq 'url' and not $attr

or 2 conditions

line l !l condition
128 10 14 $args ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
236 0 0 84 $$self{'_skip_nest'} ne '' and $end ne "[/$$self{'_skip_nest'}]" or $$self{'_in_code_block'} and $end ne '[/code]'
369 2 16 38 $tag eq 'email' || $tag eq 'url'
449 12 2 15 $attr_val eq 'font-weight:bold' or $attr_val eq 'text-decoration:underline'
14 8 7 $attr_val eq 'font-weight:bold' or $attr_val eq 'text-decoration:underline' or $attr_val eq 'font-style:italic'
10 0 7 $attr_val eq 'font-weight:bold' or $attr_val eq 'text-decoration:underline' or $attr_val eq 'font-style:italic' or $attr_val eq 'list-style-type'