Branch Coverage

blib/lib/Catalyst/Controller/SimpleCAS/Store/File.pm
Criterion Covered Total %
branch 7 26 26.9


line true false branch
22 4 0 if -d $self->store_dir
23 0 0 unless mkdir $self->store_dir
33 0 0 if $self->content_exists($checksum)
36 0 0 unless my $fd = 'IO::File'->new($save_path, '>:raw')
49 0 0 if $self->content_exists($checksum)
56 0 0 unless link $file, $save_path
59 0 0 unless move($file, $save_path)
80 0 1 if ($self->content_exists($checksum))
86 0 1 unless move($file, $save_path)
102 1 2 if ($init and not -d $dir)
103 0 1 unless mkdir $dir
114 0 0 unless -f $file
123 0 1 if -f $self->checksum_to_path($checksum)