Branch Coverage

blib/lib/rig/engine/base.pm
Criterion Covered Total %
branch 46 104 44.2


line true false branch
31 0 10 unless $import->{$_}{'use'}
39 0 14 if ($name =~ /^\+(.+)$/)
45 14 0 ref $module->{'args'} eq 'ARRAY' ? :
50 4 10 unless (eval "require $name")
51 0 4 if $optional
58 0 10 if (not $can_import and $name->isa('Exporter')) { }
0 10 elsif ($direct_import) { }
59 0 0 if @module_args > 0
84 4 4 if ($last)
85 4 0 if (*{$last;}) { }
97 4 0 if $restore
108 4 0 if ($first_module)
109 4 0 ref $first_module->{'args'} eq 'ARRAY' ? :
112 0 4 unless $can_import
121 0 9 unless my $parser = $self->{'parser'}
128 0 10 unless exists $profile->{$task_name}
130 0 10 unless ref $task eq 'HASH'
136 0 11 if $@
138 0 11 $@ ? :
11 0 if $res
147 0 9 unless ref $rig eq 'HASH'
151 9 1 unless ref $also eq 'ARRAY'
154 0 1 unless ref $also_rig eq 'HASH'
158 2 0 unless exists $rig->{$also_task}
162 1 9 if (exists $also_augment{$_}) { }
181 0 10 unless ref $section eq 'ARRAY'
184 13 4 if (ref $_ eq 'HASH') { }
189 0 13 if $optional
201 0 4 if $optional
214 4 10 unless exists $module->{'alias'}
215 0 10 unless ref $module->{'alias'} eq 'HASH'
219 0 22 unless $module->{'alias'}{$orig}
220 22 0 unless @alias > 0
221 0 0 $suppress ? :
228 0 0 if ($suppress)
237 0 13 unless ref $subs eq 'ARRAY'
256 0 3 unless (defined &{$load_sub;})
257 0 0 unless eval "require $module"
267 10 0 unless defined $current and defined $version
268 0 0 if 'version'->parse($current) < 'version'->parse($version)
283 0 0 ref $module->{'args'} eq 'ARRAY' ? :
286 0 0 if ($can_import) { }
287 0 0 if @module_args > 0
293 0 0 if ($last)
294 0 0 if (*{$last;}) { }
305 0 0 if $restore
314 0 0 if ($first_module)
316 0 0 ref $first_module->{'args'} eq 'ARRAY' ? :
319 0 0 unless $can_import
332 4 13 unless $module->{'args'}
340 17 0 if defined $module->{'version'} and defined $ret{$name}{'version'} and $module->{'version'} > $ret{$name}{'version'} or not defined $ret{$name}{'version'}
344 15 2 if defined $module->{'optional'} and defined $ret{$name}{'optional'} and $module->{'optional'} > $ret{$name}{'optional'} or not defined $ret{$name}{'optional'}