Condition Coverage

blib/lib/PDF/Make/Signature.pm
Criterion Covered Total %
condition 36 82 43.9


and 3 conditions

line !l l&&!r l&&r condition
132 2 1 0 $args{'key_file'} and $args{'cert_file'}
269 1 1 0 builtin::blessed($identity) and $identity->isa("PDF::Make::SigningIdentity")
358 0 0 0 $config->{'timestamp_url'} and not $config->{'placeholder_size'}
365 0 0 0 $config->{'timestamp_url'} and not defined $config->{'tst_token'}
709 1 2 4 $time >= $self->{'not_before'} && $time <= $self->{'not_after'}
716 1 1 4 defined $self->{'key_usage'} and $self->{'key_usage'}
722 2 0 2 defined $self->{'ext_key_usage'} and $self->{'ext_key_usage'}

or 2 conditions

line l !l condition
189 1 3 $args{'index'} // 0
279 0 0 $args{'hash'} // "sha256"
0 0 $hash_map{lc($args{'hash'} // "sha256")} // 1
297 0 0 $args{'certify'} // 0
0 0 $args{'visible'} // 0
0 0 $args{'page'} // 1
0 0 $args{'rect'} // [0, 0, 0, 0]
314 0 0 $args{'rect'} // [0, 0, 0, 0]
346 0 0 $args{'page'} // 1
0 0 $args{'show_name'} // 1
0 0 $args{'show_date'} // 1
0 0 $args{'show_reason'} // 1
378 0 0 $args{'tsa_timeout'} // 30
431 1 1 $args{'name'} // "Signature1"
432 1 1 $args{'page'} // 1
433 1 1 $args{'rect'} // [0, 0, 0, 0]
445 0 0 $config->{'hash_alg'} // 1
506 1 0 $args{'chain'} // []
525 1 0 $password // ""
557 2 0 $args{'password'} // ""
564 1 0 $password // ""
610 4 1 $args{'valid'} // 0
2 3 $args{'signature_valid'} // 0
2 3 $args{'digest_valid'} // 0
2 3 $args{'cert_valid'} // 0
1 4 $args{'document_modified'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
313 0 0 0 $args{'visible'} or $args{'appearance'}
352 0 0 0 $config->{'signing_time'} // time
708 3 4 0 $time //= time