line |
true |
false |
branch |
33
|
9 |
23 |
&blessed($_[0]) && $_[0]->isa('Pandoc::Version') ? : |
38
|
29 |
25 |
if (@_) { } |
|
23 |
2 |
elsif (defined $PANDOC_VERSION) { } |
40
|
9 |
20 |
if (@_) |
60
|
48 |
60 |
if ($api->match($REQUIRED_API[$_])) |
61
|
38 |
10 |
if (not $version or $version > $REQUIRED_API[$_ - 1]) |
67
|
3 |
24 |
if (not $version and $api >= $PANDOC_API_MIN) { } |
76
|
0 |
9 |
if @$version <= 1 |
79
|
5 |
23 |
if ($version->match($REQUIRED_API[$_ - 1])) |
86
|
1 |
3 |
if ($version > $REQUIRED_API[0]) |
90
|
1 |
2 |
$version >= $PANDOC_BIN_MIN ? : |
170
|
1 |
599 |
if @_ != $numargs |
172
|
438 |
161 |
@_ == 1 ? : |
191
|
0 |
0 |
1 == @_ ? : |
|
0 |
4 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
1 |
0 |
1 == @_ ? : |
|
1 |
17 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
39 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
69 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
2 |
if @_ |
|
1 |
0 |
1 == @_ ? : |
|
1 |
87 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
17 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
5 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
36 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
2 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
2 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
4 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
5 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
15 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
11 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
17 |
if @_ |
|
1 |
0 |
1 == @_ ? : |
|
1 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
25 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
8 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
7 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
3 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
8 |
if @_ |
|
1 |
0 |
1 == @_ ? : |
|
1 |
28 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
12 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
23 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
14 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
4 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
25 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
60 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
6 |
if @_ |
199
|
0 |
4 |
unless defined $name |
200
|
1 |
3 |
unless $ELEMENTS{$name} |
208
|
28 |
24 |
if (@_ == 1) { } |
|
9 |
15 |
elsif (@_ == 2) { } |
|
1 |
14 |
elsif (@_ % 2) { } |
211
|
21 |
7 |
if ($reftype eq 'ARRAY') { } |
|
6 |
1 |
elsif ($reftype eq 'HASH') { } |
245
|
27 |
23 |
if ($from_json) { } |
246
|
0 |
27 |
unless 'HASH' eq &reftype($meta) |
255
|
9 |
41 |
if (not defined $api_version and defined $arg->{'pandoc_version'}) { } |
270
|
0 |
583 |
unless ref $e |
271
|
305 |
278 |
if &blessed($e) and $e->isa('Pandoc::Document::Element') |
274
|
5 |
273 |
if ('MetaMap' eq $e->{'t'}) |
281
|
16 |
262 |
if $e->can('upgrade') |
324
|
6 |
41 |
if (not ref $value) { } |
|
2 |
39 |
elsif (&JSON::is_bool($value)) { } |
|
11 |
28 |
elsif (&blessed($value)) { } |
|
2 |
26 |
elsif (&reftype($value) eq 'ARRAY') { } |
|
25 |
1 |
elsif (&reftype($value) eq 'HASH') { } |
331
|
8 |
3 |
if ($value->can('is_meta') and $value->is_meta) { } |
|
1 |
2 |
elsif ($value->can('is_inline') and $value->is_inline) { } |
|
1 |
1 |
elsif ($value->can('is_block') and $value->is_block) { } |
|
0 |
1 |
elsif ($value->isa('Pandoc::Document::Metadata')) { } |
357
|
0 |
21 |
if $_[0] =~ /^Pandoc::/ |
360
|
0 |
21 |
if ($@) |
384
|
24 |
135 |
if (@_ > 1) |
385
|
0 |
24 |
unless 'HASH' eq &reftype($_[1]) |
393
|
0 |
13 |
if @_ > 1 |
410
|
49 |
56 |
if (@_) |
412
|
1 |
48 |
if $version < $PANDOC_API_MIN |
414
|
0 |
48 |
if @$version < 2 |
431
|
0 |
0 |
if ($list->[0]->name eq 'Header') |
432
|
0 |
0 |
if not $depth or $depth >= $list->[0]->level |
444
|
0 |
0 |
if ($list->[0]->name eq 'Header') |
445
|
0 |
0 |
if $list->[0]->level <= $level |
450
|
0 |
0 |
$depth && $depth < $level ? : |
460
|
0 |
0 |
@args && &blessed($args[0]) && $args[0]->isa('Pandoc') ? : |
511
|
193 |
388 |
if ($maybe_blessed and &blessed($ast)) { } |
|
169 |
219 |
elsif ('ARRAY' eq &reftype($ast)) { } |
|
219 |
0 |
elsif ('HASH' eq &reftype($ast)) { } |
512
|
193 |
0 |
if $ast->can('TO_JSON') |
520
|
255 |
32 |
ref $_ ? : |
525
|
107 |
331 |
ref $v ? : |
535
|
0 |
0 |
if @_ |
540
|
423 |
161 |
@_ == 1 ? : |
556
|
41 |
19 |
if ($_[0]->name =~ /^(Str|Code|CodeBlock|Math|MetaString)$/) { } |
|
1 |
18 |
elsif ($_[0]->name =~ /^(LineBreak|SoftBreak|Space)$/) { } |
574
|
1 |
166 |
&blessed($_[0]) ? : |
587
|
18 |
1 |
defined $_[1] ? : |
|
19 |
88 |
if @_ > 1 |
593
|
0 |
0 |
if @_ |
600
|
1 |
23 |
if (@_) |
604
|
1 |
2 |
ref $_ && &reftype($_) eq 'ARRAY' ? : |
613
|
14 |
27 |
if ($key eq 'id') { } |
|
15 |
12 |
elsif ($key eq 'class') { } |
617
|
9 |
6 |
unless (&reftype($value) // '') eq 'ARRAY' |
626
|
44 |
5 |
if (@_) |
627
|
42 |
2 |
@_ == 1 ? : |
628
|
41 |
3 |
unless (&blessed($attrs) and $attrs->isa('Hash::MultiValue')) |
631
|
14 |
30 |
if exists $attrs->{'class'} |
636
|
15 |
34 |
if $e->id ne '' |
637
|
17 |
32 |
if @{$e->attr->[1];} |
677
|
2 |
13 |
if @_ |
678
|
2 |
4 |
if @_ |
683
|
2 |
14 |
if 2 == @{$_[0]{'c'};} |
703
|
5 |
14 |
$self->api_version >= 1.17 ? : |
707
|
4 |
10 |
if (pandoc_version() < '1.16') { } |
716
|
2 |
2 |
if (pandoc_version() < 1.16) |
767
|
0 |
6 |
unless @$line and $line->[0]{'t'} eq 'Str' |
771
|
1 |
1 |
if pandoc_version() >= 1.18 |