blib/lib/Pandoc/Filter/ImagesFromCode.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 11 | 27 | 40.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
81 | 0 | 1 | 0 | not $self->{'force'} and $in |
1 | 0 | 0 | not $self->{'force'} and $in and $out | |
1 | 0 | 0 | not $self->{'force'} and $in and $out and $in->mtime <= $out->mtime |
line | l | !l | condition |
---|---|---|---|
23 | 1 | 0 | $opts{'from'} //= 'code' |
24 | 1 | 0 | $opts{'dir'} //= '.' |
29 | 0 | 1 | $opts{'name'} //= sub { $_[0]->id =~ /^[a-z0-9_]+$/i ? $_[0]->id : md5_hex(&encode('utf8', scalar $_[0]->content)); } |
128 | 1 | 0 | shift() // '' |
131 | 1 | 0 | $keyvals->get('title') // '' |
135 | 1 | 0 | $keyvals->get('caption') // '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
33 | 0 | 0 | 1 | 'ARRAY' ne &reftype($opts{'run'}) or not @{$opts{'run'};} |
94 | 1 | 0 | 0 | $args{$1} // $1 |