Branch Coverage

lib/Mojolicious/Plugin/BModel.pm
Criterion Covered Total %
branch 9 34 26.4


line true false branch
28 0 0 $conf->{'namespace'} ? :
29 0 0 unless ($self->_check_namespace($namespace))
38 0 0 exists $conf->{'create_dir'} ? :
40 0 0 if (not $dir_exists && $to_create_dir) { }
0 0 elsif (not $dir_exists and $to_create_dir) { }
45 0 0 unless mkdir $path_to_model
53 0 0 unless exists $MODULES{$model_name}
65 1 2 if -e $path_to_model and -d $path_to_model
74 0 0 unless scalar @splitted_namespace
77 0 0 if $found_wrong_name
87 0 0 scalar @splitted_namespace == 1 ? :
106 6 9 if $dir =~ /^\s*$/u
107 3 6 defined $canonical_name ? :
121 1 6 if not -d $File::Find::name or $File::Find::name eq $path_to_model
128 0 6 unless ($canonical_dir_name)
148 0 0 if ref $base_load_err
159 0 0 if ref $load_err