Branch Coverage

blib/lib/Data/Object/Space.pm
Criterion Covered Total %
branch 56 78 71.7


line true false branch
68 4 2 if @_ < 1
83 0 4 unless ($func)
93 1 3 unless ($next)
94 1 0 if ($class->can('AUTOLOAD'))
99 0 4 unless ($next)
114 2 3 ref $step eq 'ARRAY' ? :
138 0 157 if $item =~ /$regexp$/u
144 2 9 if $seen{$dir}++
168 0 1 unless ($func)
178 0 1 unless ($next)
186 1 0 @args ? :
198 1 0 unless fileno $handle
229 1 7 if $@
243 0 1 unless my $code = $class->can($routine)
246 1 0 if $data and not $data->invocant
279 0 1 if ($self->routine('import'))
284 0 1 $self->locate ? :
286 0 1 if ($self->routine('import')) { }
318 2 0 if (state $subutil = eval 'require Sub::Util') { }
331 7 15 if $has{$class}
333 0 15 if ($class eq 'main')
340 15 0 unless $failed
344 11 4 unless $loaded
345 6 9 unless $loaded
346 6 9 unless $loaded
347 6 9 unless $loaded
352 0 14 if ($error or $failed or not $loaded)
375 1 2 $is_loaded_eval || $is_loaded_used ? :
384 1 30 if (-f "$path/$file")
399 0 1 unless my $code = $class->can($routine)
402 1 0 if $data and $data->invocant
416 3 0 if @parts > 1
472 0 4 if -f $target
536 3 218 if $item =~ /$regexp$/u
542 3 10 if $seen{$dir}++
568 1 2 if ref $target eq 'ARRAY'
574 1 2 &Scalar::Util::looks_like_number($version) ? :
593 2 2 if $has{$class}
596 0 381 if $item =~ /$regexp\.pm$/u