Branch Coverage

blib/lib/Finance/Bank/Cahoot/CredentialsProvider/CryptFile.pm
Criterion Covered Total %
branch 23 24 95.8


line true false branch
26 1 8 unless defined $$options{'key'}
30 1 7 unless defined $keyfile
32 2 6 if (-e $keyfile)
33 0 2 unless my $fh = 'IO::File'->new($keyfile, 'r')
44 5 2 if (defined $$options{'fallback'})
47 2 3 if $Finance::Bank::Cahoot::CredentialsProvider::CryptFile::EVAL_ERROR
52 1 2 if $Finance::Bank::Cahoot::CredentialsProvider::CryptFile::EVAL_ERROR
57 7 3 unless (defined $$self{$credential})
58 1 6 unless defined $$self{'_fallback'}
65 2 1 if ($do_update)
66 1 1 unless my $fh = 'IO::File'->new($keyfile, 'w')
83 4 5 if defined $offset