Branch Coverage

blib/lib/Markdown/Perl.pm
Criterion Covered Total %
branch 67 76 88.1


line true false branch
58 0 9 if (&none(sub { $_ eq $k; } , @VALID_HOOKS)) { }
1 8 elsif (not defined $v) { }
0 8 elsif (ref $v ne 'CODE') { }
76 0 35141 unless @_
80 197 34944 unless (builtin::blessed($_[0]) and $_[0]->isa(__PACKAGE__))
83 17575 17566 if defined wantarray
113 17563 0 ref $md_or_ref ? :
117 17562 0 if wantarray
133 282 75972 if ($bl->{'type'} eq 'break') { }
987 74985 elsif ($bl->{'type'} eq 'heading') { }
5005 69980 elsif ($bl->{'type'} eq 'code') { }
2405 67575 elsif ($bl->{'type'} eq 'html') { }
43549 24026 elsif ($bl->{'type'} eq 'paragraph') { }
9747 14279 elsif ($bl->{'type'} eq 'quotes') { }
14201 78 elsif ($bl->{'type'} eq 'list') { }
8 70 elsif ($bl->{'type'} eq 'table') { }
70 0 elsif ($bl->{'type'} eq 'directive') { }
138 541 446 ref $c eq 'ARRAY' ? :
145 3286 1719 if ($this->get_code_blocks_info eq "language" and $bl->{'info'})
156 8009 35540 if ($this->get_allow_task_list_markers eq "list" and $parent_type eq "list" and $block_index == 1 or $this->get_allow_task_list_markers eq "always")
162 9 8000 if ($bl->{'content'}[0] =~ / ^ \s* \[ (? [ xX] ) \] (? \s | $ ) /ux)
167 6 3 $Markdown::Perl::LAST_PAREN_MATCH{'marker'} eq ' ' ? :
9 0 $Markdown::Perl::LAST_PAREN_MATCH{'space'} eq ' ' ? :
172 12145 31404 if ($tight_block) { }
5 31399 elsif ($this->get_render_naked_paragraphs) { }
187 20 14181 if $type eq "ol" and $num != 1
194 3 12 $_ ? :
198 6 2 if (@{$bl->{'content'}{'table'};})
203 2 0 $ms ? :
14 2 if (defined $_) { }
204 16 0 defined $b ? :
212 13 57 if defined $bl->{'attributes'}
214 4 66 if exists $attr{'id'}
215 9 61 if defined $bl->{'name'}
216 31 39 if exists $attr{'class'}
217 3 67 if exists $attr{'keys'}
222 1 69 if (defined $bl->{'inline'} and $this->get_warn_for_unused_input)
225 1 69 if (defined $attr{'junk'} and $this->get_warn_for_unused_input)