Condition Coverage

blib/lib/App/GroupSecret/File.pm
Criterion Covered Total %
condition 8 43 18.6


and 3 conditions

line !l l&&!r l&&r condition
87 0 0 2 $version and $version =~ /^\d+$/
92 2 0 0 $info->{'secret'} and not %{$info->{'keys'};}
163 0 0 0 -e $private_key and not -d $private_key
215 0 0 0 -e $filepath and not -d $filepath

or 2 conditions

line l !l condition
65 2 0 LoadFile($filepath) || {}
226 0 0 $key->{'comment'} || 'uncommented'

or 3 conditions

line l !l&&r !l&&!r condition
42 2 3 0 $self->{'info'} ||= do { if (-e $self->filepath) { $self->load; } else { $self->init; } }
64 0 2 0 shift() || $self->filepath
74 0 0 0 shift() || $self->filepath
82 2 0 0 shift() || $self->info
84 0 0 2 not $info or ref $info ne 'HASH'
110 0 0 0 $args->{'fingerprint_info'} || read_openssh_key_fingerprint($public_key)
129 0 0 0 $args->{'passphrase'} || $self->decrypt_secret_passphrase($args->{'private_key'})
149 0 0 0 $args->{'passphrase'} or $args->{'private_key'}
212 0 0 0 $ENV{'GROUPSECRET_PATH'} || ".:keys:$ENV{'HOME'}/.ssh"