Condition Coverage

blib/lib/Pandoc/Elements.pm
Criterion Covered Total %
condition 56 79 70.8


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 31 11 9 not defined $api_version and defined $arg->{'pandoc_version'}
271 281 0 305 &blessed($e) and $e->isa('Pandoc::Document::Element')
318 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
437 0 0 0 $depth && $depth < $level
447 0 0 0 @args && &blessed($args[0]) && $args[0]->isa('Pandoc')
498 219 169 193 $maybe_blessed and &blessed($ast)
591 2 0 1 ref $_ && &reftype($_) eq 'ARRAY'
615 41 0 3 &blessed($attrs) and $attrs->isa('Hash::MultiValue')
826 0 0 6 @$line and $line->[0]{'t'} eq 'Str'

or 2 conditions

line l !l condition
210 28 1 &reftype($_[0]) // ''
241 51 0 $arg->{'blocks'} // []
244 50 1 $arg->{'meta'} // {}
312 5 1 $value // ''
603 14 1 $value //= ''
604 6 9 &reftype($value) // ''
664 13 2 $e->{'c'}[-1][0] //= ''
665 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 5 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 31 11 0 $api_version // $REQUIRED_API[1]
419 0 0 0 not $depth or $depth >= $list->[0]->level
737 0 4 8 $arg->{$key} // $arg->{$name}
752 4 12 0 $PANDOC_VERSION // $self->pandoc_version