Branch Coverage

blib/lib/Crypt/Credentials.pm
Criterion Covered Total %
branch 23 38 60.5


line true false branch
24 1 1 if (-f $check_file) { }
27 0 0 if $length != 16 and $length != 24 and $length != 32
29 1 1 if ($tag eq "OK")
37 0 0 if $length != 16 and $length != 24 and $length != 32
41 0 2 unless defined $real_key
80 1 4 unless defined $plaintext
87 0 2 unless -f $filename
106 0 1 unless opendir my $dh, $dir
108 2 2 if $file eq "." or $file eq ".."
111 0 2 if (-d $filename) { }
2 0 elsif (-f $filename) { }
114 1 1 unless $file =~ /\.yml\.enc$/
125 0 0 if $key_length != 16 and $key_length != 24 and $key_length != 32
144 0 2 unless opendir my $dh, $dir
147 4 3 if $file eq "." or $file eq ".."
150 0 3 if (-d $filename) { }
1 2 elsif (-f $filename and $filename =~ s/\.yml\.enc$//) { }
161 0 2 $base ? :
162 0 2 unless -d $dir