Branch Coverage

lib/UR/Namespace.pm
Criterion Covered Total %
branch 31 44 70.4


line true false branch
39 2468 462 if $class eq 'UR' or $class eq 'UR::Namespace'
43 462 28 unless substr($calling_package, 0, 4) eq 'UR::'
45 0 462 unless $calling_package
59 2 4 if (my $cached = $self->{'material_classes'}) { }
66 10 43 unless $class
93 0 2 if ($class eq 'UR' or ref $class and $class->id eq 'UR') { }
102 2 25 if (-d $path)
153 0 4 if ref $class
158 0 4 if (defined $subdir and length $subdir) { }
169 4 22 if ($File::Find::dir =~ m[/t$]) { }
0 22 elsif (-e $File::Find::dir . '/UR_IGNORE') { }
179 26 115 if -d $File::Find::name
180 0 115 if $File::Find::name =~ m[/\.deleted/]
181 0 115 if -e $File::Find::name . '/UR_IGNORE'
182 10 105 unless $File::Find::name =~ /\.pm$/
183 0 105 unless $File::Find::name =~ m[.*($namespace/.*)\.pm]
186 0 105 if $try_class =~ m[[^\w/]]
188 105 0 if $try_class
193 0 4 if $subdir
196 3 1 if -d $namespace_dir
198 56 0 if $_ =~ m[/$path_to_check]
200 0 4 unless @dirs_to_search