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 |
3 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
25 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
2 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
4 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
98 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
4 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
24 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
22 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
15 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
14 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
10 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
14 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
36 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
1 |
0 |
1 == @_ ? : |
|
1 |
2 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
11 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
50 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
36 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
11 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
3 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
3 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
1 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
21 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
75 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
11 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
7 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
1 |
0 |
1 == @_ ? : |
|
1 |
0 |
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 |
2 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
4 |
if @_ |
|
1 |
0 |
1 == @_ ? : |
|
1 |
34 |
if @_ |
|
1 |
0 |
1 == @_ ? : |
|
1 |
2 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
4 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
14 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
|
0 |
0 |
1 == @_ ? : |
|
0 |
0 |
if @_ |
199
|
0 |
4 |
unless defined $name |
200
|
1 |
3 |
unless $ELEMENTS{$name} |
208
|
29 |
24 |
if (@_ == 1) { } |
|
9 |
15 |
elsif (@_ == 2) { } |
|
1 |
14 |
elsif (@_ % 2) { } |
211
|
21 |
8 |
if ($reftype eq 'ARRAY') { } |
|
7 |
1 |
elsif ($reftype eq 'HASH') { } |
245
|
28 |
23 |
if ($from_json) { } |
246
|
0 |
28 |
unless 'HASH' eq &reftype($meta) |
255
|
9 |
42 |
if (not defined $api_version and defined $arg->{'pandoc_version'}) { } |
270
|
0 |
586 |
unless ref $e |
271
|
305 |
281 |
if &blessed($e) and $e->isa('Pandoc::Document::Element') |
274
|
5 |
276 |
if ('MetaMap' eq $e->{'t'}) |
281
|
16 |
265 |
if $e->can('upgrade') |
311
|
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') { } |
318
|
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')) { } |
344
|
0 |
22 |
if $_[0] =~ /^Pandoc::/ |
347
|
0 |
22 |
if ($@) |
371
|
24 |
135 |
if (@_ > 1) |
372
|
0 |
24 |
unless 'HASH' eq &reftype($_[1]) |
380
|
0 |
13 |
if @_ > 1 |
397
|
50 |
56 |
if (@_) |
399
|
1 |
49 |
if $version < $PANDOC_API_MIN |
401
|
0 |
49 |
if @$version < 2 |
418
|
0 |
0 |
if ($list->[0]->name eq 'Header') |
419
|
0 |
0 |
if not $depth or $depth >= $list->[0]->level |
431
|
0 |
0 |
if ($list->[0]->name eq 'Header') |
432
|
0 |
0 |
if $list->[0]->level <= $level |
437
|
0 |
0 |
$depth && $depth < $level ? : |
447
|
0 |
0 |
@args && &blessed($args[0]) && $args[0]->isa('Pandoc') ? : |
498
|
193 |
388 |
if ($maybe_blessed and &blessed($ast)) { } |
|
169 |
219 |
elsif ('ARRAY' eq &reftype($ast)) { } |
|
219 |
0 |
elsif ('HASH' eq &reftype($ast)) { } |
499
|
193 |
0 |
if $ast->can('TO_JSON') |
507
|
255 |
32 |
ref $_ ? : |
512
|
107 |
331 |
ref $v ? : |
522
|
0 |
0 |
if @_ |
527
|
423 |
161 |
@_ == 1 ? : |
543
|
41 |
19 |
if ($_[0]->name =~ /^(Str|Code|CodeBlock|Math|MetaString)$/) { } |
|
1 |
18 |
elsif ($_[0]->name =~ /^(LineBreak|SoftBreak|Space)$/) { } |
561
|
1 |
169 |
&blessed($_[0]) ? : |
574
|
18 |
1 |
defined $_[1] ? : |
|
19 |
88 |
if @_ > 1 |
580
|
0 |
0 |
if @_ |
587
|
1 |
23 |
if (@_) |
591
|
1 |
2 |
ref $_ && &reftype($_) eq 'ARRAY' ? : |
600
|
14 |
27 |
if ($key eq 'id') { } |
|
15 |
12 |
elsif ($key eq 'class') { } |
604
|
9 |
6 |
unless (&reftype($value) // '') eq 'ARRAY' |
613
|
44 |
5 |
if (@_) |
614
|
42 |
2 |
@_ == 1 ? : |
615
|
41 |
3 |
unless (&blessed($attrs) and $attrs->isa('Hash::MultiValue')) |
618
|
14 |
30 |
if exists $attrs->{'class'} |
623
|
15 |
34 |
if $e->id ne '' |
624
|
17 |
32 |
if @{$e->attr->[1];} |
664
|
2 |
13 |
if @_ |
665
|
2 |
4 |
if @_ |
670
|
2 |
14 |
if 2 == @{$_[0]{'c'};} |
762
|
5 |
14 |
$self->api_version >= 1.17 ? : |
766
|
4 |
10 |
if (pandoc_version() < '1.16') { } |
775
|
2 |
2 |
if (pandoc_version() < 1.16) |
826
|
0 |
6 |
unless @$line and $line->[0]{'t'} eq 'Str' |
830
|
1 |
1 |
if pandoc_version() >= 1.18 |