| line |
true |
false |
branch |
|
72
|
1262 |
267730 |
if exists $options{'debug'} |
|
74
|
12452 |
256540 |
if (builtin::blessed($content) and $content->isa('Markdown::Perl::InlineTree')) { } |
|
|
256540 |
0 |
elsif (not ref $content) { } |
|
85
|
246734 |
22258 |
if ($type eq 'text' or $type eq 'code' or $type eq 'literal' or $type eq 'html') { } |
|
|
11939 |
10319 |
elsif ($type eq 'link') { } |
|
|
10319 |
0 |
elsif ($type eq 'style') { } |
|
86
|
0 |
246734 |
if $content_ref |
|
87
|
0 |
246734 |
if %options |
|
90
|
0 |
11939 |
unless exists $options{'type'} |
|
93
|
0 |
11939 |
unless exists $options{'target'} |
|
95
|
92 |
11847 |
if exists $options{'title'} |
|
96
|
1 |
11938 |
if exists $options{'content'} |
|
97
|
0 |
11939 |
if keys %options |
|
100
|
0 |
10319 |
if keys %options > 1 or not exists $options{'tag'} |
|
101
|
0 |
10319 |
unless $content_ref |
|
127
|
0 |
181230 |
if $this->{'escaped'} |
|
130
|
109221 |
72009 |
if ($this->{'type'} eq 'text') { } |
|
|
21429 |
50580 |
elsif ($this->{'type'} eq 'literal') { } |
|
|
3638 |
46942 |
elsif ($this->{'type'} eq 'code') { } |
|
|
11939 |
35003 |
elsif ($this->{'type'} eq 'link') { } |
|
|
35003 |
0 |
elsif ($this->{'type'} eq 'html' or $this->{'type'} eq 'style') { } |
|
143
|
9806 |
2133 |
if ($this->{'linktype'} eq 'autolink') { } |
|
|
2133 |
0 |
elsif ($this->{'linktype'} eq 'link' or $this->{'linktype'} eq 'img') { } |
|
153
|
92 |
2041 |
if (exists $this->{'title'}) |
|
231
|
427699 |
66720 |
if (is_node($node_or_tree)) { } |
|
|
66720 |
0 |
elsif (is_tree($node_or_tree)) { } |
|
257
|
139239 |
0 |
is_node($_) ? : |
|
275
|
22506 |
41179 |
is_node($_) ? : |
|
308
|
0 |
81732 |
unless $sn->{'type'} eq "text" or $text_start == 0 |
|
329
|
0 |
81732 |
unless $text_end == 0 or $en->{'type'} eq "text" |
|
330
|
0 |
81732 |
if $text_start < 0 |
|
332
|
0 |
81732 |
if $text_end != 0 and $text_end > length $en->{'content'} |
|
335
|
241 |
81491 |
if ($text_end == 0) |
|
346
|
81491 |
241 |
unless $empty_last |
|
348
|
11151 |
70581 |
if length $nodes[0]{'content'} == 0 |
|
349
|
0 |
81491 |
if not $empty_last and @nodes and length $nodes[-1]{'content'} == 0 |
|
353
|
3347 |
78385 |
if ($child_start != $child_end) { } |
|
354
|
480 |
2867 |
if ($text_start == 0) { } |
|
359
|
2358 |
989 |
if ($empty_last or $text_end == length $en->{'content'}) { } |
|
367
|
72756 |
5629 |
if ($text_start > 0) |
|
370
|
66483 |
11902 |
if (not $empty_last and $text_end < length $sn->{'content'}) |
|
374
|
5629 |
72756 |
if $text_start == 0 |
|
378
|
43312 |
38420 |
if wantarray |
|
410
|
0 |
0 |
if defined wantarray |
|
435
|
2114 |
240985 |
if ($_->has_subtree) { } |
|
436
|
36 |
2078 |
if (defined wantarray) { } |
|
447
|
30426 |
210559 |
if (defined wantarray) { } |
|
457
|
28308 |
95979 |
if defined wantarray |
|
478
|
12452 |
168778 |
if $_->has_subtree |
|
573
|
40502 |
119537 |
unless $this->{'children'}[$i]{'type'} eq "text" |
|
574
|
4597 |
114940 |
if ($i == $child_start and $text_start != 0) { } |
|
585
|
352 |
41823 |
if $i == ($child_bound // -1) and $Markdown::Perl::InlineTree::LAST_MATCH_START[0] >= $text_bound |
|
586
|
41788 |
35 |
if ($open == 0) |
|
587
|
41727 |
61 |
if wantarray |
|
620
|
249 |
3837 |
unless $this->{'children'}[$i]{'type'} eq "text" |
|
621
|
3609 |
228 |
if ($i == $child_start and $text_start != 0) { } |
|
633
|
0 |
3921 |
if $i == ($child_bound // -1) and $Markdown::Perl::InlineTree::LAST_MATCH_START[0] >= $text_bound |
|
634
|
2928 |
993 |
if $open == 0 and $done or $open < 0 |
|
660
|
0 |
179294 |
unless $n->{'escaped'} |
|
662
|
153614 |
25680 |
if ($n->{'type'} eq 'text' or $n->{'type'} eq 'literal' or $n->{'type'} eq 'html') { } |
|
|
3615 |
22065 |
elsif ($n->{'type'} eq 'code') { } |
|
|
11855 |
10210 |
elsif ($n->{'type'} eq 'link') { } |
|
|
10210 |
0 |
elsif ($n->{'type'} eq 'style') { } |
|
668
|
92 |
11763 |
if (exists $n->{'title'}) |
|
671
|
11061 |
794 |
if ($n->{'linktype'} eq 'link' or $n->{'linktype'} eq 'autolink') { } |
|
|
794 |
0 |
elsif ($n->{'linktype'} eq 'img') { } |
|
675
|
9755 |
1306 |
exists $n->{'content'} ? : |
|
685
|
1 |
10209 |
if ($n->{'tag'} =~ /^\.(.*)$/u) { } |
|
716
|
0 |
1935 |
unless $n->{'escaped'} |
|
717
|
1274 |
661 |
if ($n->{'type'} eq 'text') { } |
|
|
109 |
552 |
elsif ($n->{'type'} eq 'style') { } |
|
|
445 |
107 |
elsif ($n->{'type'} eq 'literal' or $n->{'type'} eq 'html') { } |
|
|
84 |
23 |
elsif ($n->{'type'} eq 'link') { } |
|
|
23 |
0 |
elsif ($n->{'type'} eq 'code') { } |
|
727
|
32 |
52 |
if ($n->{'linktype'} ne 'autolink') { } |
|
779
|
0 |
23553 |
if $n->{'escaped'} |
|
780
|
22428 |
1125 |
if ($n->{'type'} eq 'text') { } |
|
|
8 |
1117 |
elsif ($n->{'type'} eq 'literal' and $unescape_literal) { } |
|
|
652 |
465 |
elsif ($n->{'type'} eq 'literal' or $n->{'type'} eq 'html') { } |
|
|
110 |
355 |
elsif ($n->{'type'} eq 'code') { } |
|
|
355 |
0 |
elsif ($n->{'type'} eq 'link') { } |
|
790
|
319 |
36 |
if ($n->{'linktype'} eq 'autolink') { } |