Branch Coverage

blib/lib/BBCode/Tag/LIST.pm
Criterion Covered Total %
branch 21 42 50.0


line true false branch
36 1 1 if ($param eq 'TYPE')
37 1 0 if parseListType $val > 0
40 0 1 if ($param eq 'START')
43 1 0 if ($param eq 'BULLET')
45 0 1 if (defined $url) { }
51 0 0 if ($param eq 'OUTSIDE')
79 0 41 unless defined $tag
81 0 41 unless (ref $tag)
86 22 19 if (UNIVERSAL::isa($tag, 'BBCode::Tag::TEXT'))
88 0 22 unless ($str =~ /^\s*$/)
89 0 0 if $str =~ s/^(\s+)//
90 0 0 if $str =~ s/(\s+)$//
111 18 16 unless UNIVERSAL::isa($_, 'BBCode::Tag::LI')
125 8 0 unless @list
128 0 8 if (@list > 1)
133 0 8 if ($list[0] eq 'ol' and defined $start) { }
139 7 1 if ($list[0] eq 'ul' and $this->parser->allow_image_bullets)
141 0 7 if (defined $url)
147 0 8 if (defined $outside)
148 0 0 $outside ? :
151 0 8 @css ? :