Branch Coverage

blib/lib/Articulate/Storage/Local.pm
Criterion Covered Total %
branch 24 60 40.0


line true false branch
70 3 7 unless (-d $true_location)
73 10 0 -d $true_location ? :
94 0 2 unless $self->navigation->valid_location($location)
96 0 2 unless $self->item_exists($location)
116 0 5 unless $self->navigation->valid_location($location)
118 2 3 unless $self->item_exists($location)
121 3 0 if -e $fn
163 0 0 unless $self->navigation->valid_location($location)
165 0 0 unless $self->item_exists($location)
170 0 0 if -e $fn
186 0 0 unless $self->navigation->valid_location($location)
188 0 0 unless $self->item_exists($location)
191 0 0 if -e $fn
207 0 0 unless $self->navigation->valid_location($location)
209 0 0 unless $self->item_exists($location)
228 0 0 unless $self->navigation->valid_location($location)
236 0 0 if -e $fn
253 0 10 unless $self->navigation->valid_location($location)
255 2 8 unless $self->item_exists($location)
258 0 8 unless open my $fh, '<', $fn
279 0 5 unless open my $fh, '>', $fn
289 0 0 unless open my $fh, '>', $fn
299 0 5 if (_is_upload($content)) { }
333 0 5 unless $self->navigation->valid_location($location)
335 1 4 if $self->item_exists($location)
367 0 44 unless $self->navigation->valid_location($location)
387 0 2 unless -d $true_location
388 0 2 unless opendir my $dh, $true_location
392 0 6 unless -d $child_dn
393 2 4 if $self->navigation->valid_location($location . '/' . $fn) and $self->item_exists(new_location($location . '/' . $fn))