Branch Coverage

blib/lib/PFT/Content/File.pm
Criterion Covered Total %
branch 9 14 64.2


line true false branch
63 0 26 $swap ? :
71 0 133 unless exists $params->{'path'}
73 13 120 unless defined $params->{'name'}
142 66 82 if $mode =~ /w|a/u
143 0 148 unless 'IO::File'->new($encpath, $mode)
179 0 1 unless CORE::unlink $self->encpath
195 0 1 unless rename $self->{'encpath'}, $enc_new_path