Condition Coverage

blib/lib/Pandoc.pm
Criterion Covered Total %
condition 7 83 8.4


and 3 conditions

line !l l&&!r l&&r condition
29 9 0 0 @_ and $_[0] =~ /^[v0-9.<>=!, ]+$/u
48 8 0 0 @_ && !($_[0] =~ /^-./u)
51 0 8 0 not -x $bin and $bin =~ /^\d+(\.\d+)*$/u
8 0 0 not -x $bin and $bin =~ /^\d+(\.\d+)*$/u and -x $bin_from_version
67 8 0 0 $out and $out =~ /^[^ ]+ (\d+(\.\d+)+)/u
115 0 0 0 $args and not $opts
0 0 0 $args and not $opts and @_ % 2 == 0
155 0 0 0 $status and $throw
236 0 0 0 @_ and not $version->fulfills(@_)
267 0 0 0 @$args and not $args->[0] =~ /^-./u
321 0 0 0 $format =~ /^[a-z0-9_]$/u and $pandoc->version >= '2.0.6'

or 2 conditions

line l !l condition
98 0 8 eval { do { 'Pandoc'->new } } // 0
134 0 0 $args //= []
135 0 0 $opts //= {}
141 0 0 $$opts{"binmode_std$io"} //= ':encoding(UTF-8)'
146 0 0 $opts->{'out'} //= \my $out
147 0 0 $opts->{'err'} //= \my $err
161 0 0 ${$opts->{'err'};} || 'pandoc execution failed'
295 0 0 $pandoc->{$which} // []
312 0 0 shift() // ''
347 0 0 '' eq $name // ''

or 3 conditions

line l !l&&r !l&&!r condition
30 0 0 0 $PANDOC //= 'Pandoc'->new
33 0 0 0 $PANDOC //= 'Pandoc'->new(@_)
40 0 0 0 $PANDOC //= 'Pandoc'->new
98 0 0 8 $PANDOC //= eval { do { 'Pandoc'->new } } // 0
116 0 0 0 $_[0] =~ /^-/u or $opts
0 0 0 $_[0] =~ /^-/u or $opts or @_ % 2
138 0 0 0 $$opts{"binmode_std$io"} //= $opts->{'binmode'}
145 0 0 0 $opts->{'throw'} || !($opts->{'return_if_system_error'} // 1)
219 0 0 0 $PANDOC //= 'Pandoc'->new
332 0 0 0 $1 || $3