Branch Coverage

lib/Text/Markdown.pm
Criterion Covered Total %
branch 71 92 77.1


line true false branch
167 14 1 unless defined $p{'tab_width'} and $p{'tab_width'} =~ /^\d+$/
171 1 14 $p{'trust_list_start_value'} ? :
189 5 48 unless (ref $self)
190 4 1 if ($self ne 'Text::Markdown') { }
215 0 48 $$options{'urls'} ? :
316 1 22 if ($3)
329 0 166 unless defined $input
330 0 166 if (&Encode::is_utf8($input)) { }
385 187 2410 if (defined $2) { }
389 158 29 if ($tag) { }
390 15 143 if ($$options{'interpret_markdown_on_attribute'} and $opening_tag =~ s/$markdown_attr//i)
392 13 2 if ($markdown =~ /^(1|on|yes)$/) { }
596 200 413 if ($$cur_token[0] eq 'tag') { }
628 200 413 if ($$cur_token[0] eq 'tag')
666 12 20 if ($link_id eq '')
734 70 0 unless defined $attributes
736 35 35 if (not defined $url and defined $$self{'_urls'}{$link_id})
740 13 57 unless (defined $url)
750 3 53 if (not defined $title and defined $link_id and defined $$self{'_titles'}{$link_id})
754 4 53 if (defined $title)
795 0 0 if ($link_id eq '')
829 0 0 if (defined $6)
845 0 0 unless defined $attributes
851 0 0 if (not defined $url and defined $$self{'_urls'}{$link_id})
856 0 0 unless defined $url
862 0 0 if (not defined $title and length $link_id and defined $$self{'_titles'}{$link_id} and length $$self{'_titles'}{$link_id})
867 0 0 if (defined $title and length $title)
978 47 64 if ($$self{'_list_level'}) { }
985 7 2 $marker =~ /$marker_ul/ ? :
989 7 2 $list_type eq 'ul' ? :
1004 9 4 $marker =~ /$marker_ul/ ? :
1008 9 4 $list_type eq 'ul' ? :
1023 2 20 if ($list_type eq 'ol' and $$self{'trust_list_start_value'})
1079 0 10 if ($leading_line or $item =~ /\n{2,}/) { }
1144 3 34 if ($leading_line or $item =~ /\n{2,}/) { }
1261 0 145 if (defined $blosxom::version)
1362 212 166 unless (defined $$self{'_html_blocks'}{$_})
1364 211 1 if ($$options{'wrap_in_p_tags'})
1375 166 212 if (defined $$self{'_html_blocks'}{$_})
1387 0 284 unless defined $text and length $text
1494 1 15 if ($char eq '@') { }
14 1 elsif ($char ne ':') { }
1502 5 6 $r < 0.45 ? :
3 11 $r > 0.9 ? :
1559 332 68 if ($pos < $tag_start)
1565 494 28 if $pos < $len