Condition Coverage

blib/lib/Pandoc/Elements.pm
Criterion Covered Total %
condition 60 88 68.1


and 3 conditions

line !l l&&!r l&&r condition
33 23 0 9 &blessed($_[0]) && $_[0]->isa('Pandoc::Version')
67 24 0 3 not $version and $api >= $PANDOC_API_MIN
255 30 11 9 not defined $api_version and defined $arg->{'pandoc_version'}
271 278 0 305 &blessed($e) and $e->isa('Pandoc::Document::Element')
331 1 2 8 $value->can('is_meta') and $value->is_meta
1 1 1 $value->can('is_inline') and $value->is_inline
1 0 1 $value->can('is_block') and $value->is_block
450 0 0 0 $depth && $depth < $level
460 0 0 0 @args && &blessed($args[0]) && $args[0]->isa('Pandoc')
511 219 169 193 $maybe_blessed and &blessed($ast)
604 2 0 1 ref $_ && &reftype($_) eq 'ARRAY'
628 41 0 3 &blessed($attrs) and $attrs->isa('Hash::MultiValue')
767 0 0 6 @$line and $line->[0]{'t'} eq 'Str'

or 2 conditions

line l !l condition
210 27 1 &reftype($_[0]) // ''
241 50 0 $arg->{'blocks'} // []
244 49 1 $arg->{'meta'} // {}
312 1 0 $a->{'id'} // 'missing'
1 0 $a->{'prefix'} // []
1 0 $a->{'suffix'} // []
0 1 $a->{'mode'} // bless({'t', 'NormalCitation', 'c', []}, 'Pandoc::Document::NormalCitation')
0 1 $a->{'num'} // 0
0 1 $a->{'hash'} // 1
325 5 1 $value // ''
616 14 1 $value //= ''
617 6 9 &reftype($value) // ''
677 13 2 $e->{'c'}[-1][0] //= ''
678 4 2 $e->{'c'}[-1][1] //= ''

or 3 conditions

line l !l&&r !l&&!r condition
41 7 1 1 _minimum_pandoc_api_for(@_) // croak('pandoc version not supported')
61 24 14 10 not $version or $version > $REQUIRED_API[$_ - 1]
238 4 0 46 $arg->{'pandoc-api-version'} // $arg->{'pandoc_api_version'}
0 26 20 ($arg->{'pandoc-api-version'} // $arg->{'pandoc_api_version'}) // $arg->{'api_version'}
258 30 11 0 $api_version // $REQUIRED_API[1]
432 0 0 0 not $depth or $depth >= $list->[0]->level
693 4 12 0 $PANDOC_VERSION // $self->pandoc_version