Branch Coverage

blib/lib/Cog/Config.pm
Criterion Covered Total %
branch 0 72 0.0


line true false branch
69 0 0 if -d "$root/static"
71 0 0 if -e "$root/config.yaml"
73 0 0 if -d "$root/static"
104 0 0 if $$expanded{$plugin}
107 0 0 if $@ and not $@ =~ /Can't locate/
116 0 0 if ($plugin->isa('Cog::App')) { }
0 0 elsif ($plugin->isa('Cog::WebApp')) { }
117 0 0 if ($plugin->webapp_class)
120 0 0 unless $parent =~ /^(Cog::Base|Cog::Plugin)$/
124 0 0 unless $parent =~ /^(Cog::Base|Cog::Plugin)$/
141 0 0 $list_list ? :
144 0 0 unless defined &$function
156 0 0 if ($add eq '()') { }
0 0 elsif ($add eq '^^') { }
0 0 elsif ($add eq '$$') { }
0 0 elsif ($add eq '++') { }
0 0 elsif ($add eq '--') { }
0 0 elsif ($add =~ s/^(\-\-|\+\+) *//) { }
166 0 0 if $point < @$list
169 0 0 if $point > 0
174 0 0 if ($add eq $$list[$point])
175 0 0 if $indicator eq '--'
177 0 0 if $indicator eq '++'
193 0 0 if (not ref $add and $add eq '()') { }
207 0 0 unless my $dir = $self->find_share_dir($plugin)
209 0 0 if $dir
223 0 0 unless my $dir = $INC{$modpath}
224 0 0 unless $dir =~ s[(blib/)?lib/\Q$modpath\E$][]
226 0 0 if -e $dir
231 0 0 if $dir
244 0 0 unless my $dir = $self->_class_share_map->{$plugin}
246 0 0 if "$_" =~ /\.(sw[p]|packlist)$/
249 0 0 unless $short =~ s[^\Q$dir\E/?][]
270 0 0 $path ? :
271 0 0 if (ref $value eq 'HASH') { }
0 0 elsif ($$map{$name}) { }