line |
true |
false |
branch |
66
|
1 |
180 |
if ($command eq 'image') |
74
|
1 |
0 |
if ($paragraph =~ /(\S*)\s*(.*)/g) |
93
|
1 |
180 |
if ($command eq 'for') { } |
|
25 |
155 |
elsif ($command eq 'over') { } |
|
25 |
130 |
elsif ($command eq 'back') { } |
|
0 |
130 |
elsif ($command eq 'cut') { } |
|
1 |
129 |
elsif ($command eq 'begin') { } |
|
1 |
128 |
elsif ($command eq 'end') { } |
98
|
1 |
0 |
if ($paragraph =~ /image\s*(\S*)\s*(.*)/g) |
127
|
9 |
16 |
if (exists $parser->{'EBook_MOBI_Pod2Mhtml_list'}) { } |
151
|
14 |
11 |
if ($parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl]{'type'} eq 'ul') { } |
|
6 |
5 |
elsif ($parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl]{'type'} eq 'ol') { } |
|
5 |
0 |
elsif ($parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl]{'type'} eq 'blockquote') { } |
171
|
16 |
9 |
if ($parser->{'EBook_MOBI_Pod2Mhtml_listlvl'} == 0) { } |
187
|
1 |
0 |
if ($paragraph =~ /^\W*(\w+)\W*$/) |
193
|
1 |
0 |
if ($paragraph =~ /^\W*(\w+)\W*$/) |
195
|
1 |
0 |
if ($parser->{'EBook_MOBI_Pod2Mhtml_begin'} eq $end_name) { } |
215
|
17 |
111 |
if ($command eq 'head0') { } |
|
38 |
73 |
elsif ($command eq 'head1') { } |
|
12 |
61 |
elsif ($command eq 'head2') { } |
|
1 |
60 |
elsif ($command eq 'head3') { } |
|
1 |
59 |
elsif ($command eq 'head4') { } |
|
58 |
1 |
elsif ($command eq 'item') { } |
218
|
9 |
8 |
if ($parser->head0_mode) |
221
|
3 |
6 |
if (exists $parser->{'EBook_MOBI_Pod2Mhtml_firstH1passed'} and exists $parser->{'EBook_MOBI_Pod2Mhtml_pages'} and $parser->{'EBook_MOBI_Pod2Mhtml_pages'}) { } |
238
|
9 |
29 |
if ($parser->head0_mode) { } |
245
|
2 |
27 |
if (exists $parser->{'EBook_MOBI_Pod2Mhtml_firstH1passed'} and exists $parser->{'EBook_MOBI_Pod2Mhtml_pages'} and $parser->{'EBook_MOBI_Pod2Mhtml_pages'}) { } |
262
|
4 |
8 |
if ($parser->head0_mode) { } |
273
|
0 |
1 |
if ($parser->head0_mode) { } |
284
|
0 |
1 |
if ($parser->head0_mode) { } |
303
|
20 |
38 |
if ($parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl]{'items'} == 1) { } |
306
|
6 |
14 |
if ($parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl]{'state'} eq 'over' and $lvl > 0 and $parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl - 1]{'items'} > 0) |
318
|
6 |
14 |
if ($expansion =~ /^\s*\d+\s*(.*)$/) { } |
|
11 |
3 |
elsif ($expansion =~ /^\s*\*{1}\s*(.*)$/) { } |
|
1 |
2 |
elsif ($expansion =~ /[[:alnum:][:punct:]]+/) { } |
323
|
5 |
1 |
if ($expansion =~ /[[:alnum:][:punct:]]+/) { } |
336
|
9 |
2 |
if ($expansion =~ /[[:alnum:][:punct:]]+/) { } |
364
|
7 |
31 |
if ($parser->{'EBook_MOBI_Pod2Mhtml_listjustwentback'}) { } |
376
|
10 |
28 |
if ($type eq 'ol') |
377
|
10 |
0 |
if ($expansion =~ /^\s*\d+\s*(.*)$/) |
381
|
28 |
10 |
if ($type eq 'ul') |
382
|
22 |
6 |
if ($expansion =~ /^\s*\*{1}\s*(.*)$/) |
405
|
0 |
1 |
if ($paragraph eq "\n") |
436
|
1 |
85 |
if ($parser->{'EBook_MOBI_Pod2Mhtml_begin'} eq 'html') |
472
|
56 |
29 |
if (not exists $parser->{'EBook_MOBI_Pod2Mhtml_list'}) { } |
|
2 |
27 |
elsif ($parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl]{'items'} > 0 and $parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl]{'contentInCmd'} == 1) { } |
|
12 |
15 |
elsif ($parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl]{'items'} > 0) { } |
|
15 |
0 |
elsif ($parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl]{'items'} == 0) { } |
498
|
1 |
4 |
if ($parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl]{'blockquotes'} == 1 and $lvl > 0 and $parser->{'EBook_MOBI_Pod2Mhtml_list'}[$lvl - 1]{'items'} > 0) |
538
|
3 |
16 |
if $cmd eq 'B' |
539
|
1 |
15 |
if $cmd eq 'C' |
540
|
1 |
14 |
if $cmd eq 'F' |
541
|
2 |
12 |
if $cmd eq 'I' |
542
|
1 |
11 |
if $cmd eq 'E' |
545
|
11 |
0 |
if ($cmd eq 'L') |
557
|
5 |
6 |
if ($arg =~ /^(.*)\|(.*)$/) |
563
|
6 |
5 |
unless $link |
570
|
2 |
9 |
if ($link =~ m[^/(.*)]) { } |
|
5 |
4 |
elsif ($link =~ /^http.*$/ or $link =~ /^.*\.{1}\w{2,5}$/) { } |
|
2 |
2 |
elsif ($link =~ m[(.*)/(.*)]) { } |
572
|
1 |
1 |
if ($text) { } |
594
|
2 |
0 |
if ($module and $section) { } |
|
0 |
0 |
elsif ($module and not $section) { } |
|
0 |
0 |
elsif (not $module && $section) { } |
617
|
5 |
4 |
unless $text |
648
|
5 |
0 |
if (ref $args eq 'HASH') { } |
649
|
4 |
1 |
if exists $args->{'head0_mode'} |
650
|
4 |
1 |
if exists $args->{'pagemode'} |
660
|
25 |
0 |
if (@_ > 1) { } |
671
|
5 |
69 |
if (@_ > 1) { } |