Branch Coverage

blib/lib/Pandoc/Filter/ImagesFromCode.pm
Criterion Covered Total %
branch 12 28 42.8


line true false branch
27 1 0 $_[0]->id =~ /^[a-z0-9_]+$/i ? :
31 0 1 unless $opts{'to'}
33 0 1 if ('ARRAY' ne &reftype($opts{'run'}) or not @{$opts{'run'};})
43 0 1 if (ref $to) { }
1 0 elsif ($to) { }
58 0 1 if $e->name ne 'CodeBlock'
81 0 0 if (not $self->{'force'} and $in and $out and $in->mtime <= $out->mtime)
82 0 0 if ($code eq read_file($args{'infile'}, ':utf8'))
106 1 0 if ($self->{'capture'})
112 0 1 if $stderr
136 1 0 if (defined $caption)
146 0 2 unless open my $fh, ">$encoding", $file
155 0 2 unless open my $fh, "<$encoding", $file
159 0 2 unless close $fh