Condition Coverage

blib/lib/GnuPG.pm
Criterion Covered Total %
condition 36 70 51.4


and 3 conditions

line !l l&&!r l&&r condition
153 0 0 0 $self->{'gnupg_pid'} and kill 0, $self->{'gnupg_pid'}
247 22 0 5 ref $self->{'input'} and defined fileno $self->{'input'}
6 16 0 $self->{'input'} and -t STDIN
258 22 0 5 ref $self->{'output'} and defined fileno $self->{'output'}
7 15 0 $self->{'output'} and -t STDOUT
302 0 80 346 defined $cmd and $cmd =~ /^GET_/
320 0 0 346 defined $cmd and $cmd =~ /^GOT_IT/
356 0 0 46 -d $args{'homedir'} and -x _
382 14 0 0 $self->{'gnupg_pid'} and kill 0, $self->{'gnupg_pid'}
412 0 0 0 $email =~ /^\s* # Whitespace are okay [a-zA-Z0-9_-] # Doesn't start with a dot [a-zA-Z0-9_.-]* \@ # Contains at most one at [a-zA-Z0-9_.-]+ [a-zA-Z0-9_-] # Doesn't end in a dot /x and not $email =~ /\.\./
541 70 34 0 $args{'sign'} and $args{'symmetric'}
782 0 51 166 defined $cmd and not $cmd =~ /DECRYPTION_OKAY/

or 2 conditions

line l !l condition
277 27 0 POSIX::sysconf(&POSIX::_SC_OPEN_MAX) || 256
393 0 28 $algo ||= 1
396 0 28 $size ||= 1024
401 0 28 $expire ||= 0
403 28 0 $args{'passphrase'} || ''
543 51 53 $args{'passphrase'} || ''
582 33 0 $args{'passphrase'} || ''
732 63 0 $args{'passphrase'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
349 0 46 0 ref $proto || $proto
529 87 0 17 $args{'recipient'} or $args{'symmetric'}
549 94 0 10 $args{'plaintext'} || $args{'input'}
562 32 0 64 $args{'sign'} or $args{'symmetric'}
588 33 0 0 $args{'plaintext'} || $args{'input'}
718 61 0 8 $args{'ciphertext'} || $args{'input'}