Branch Coverage

blib/lib/rig/engine/base.pm
Criterion Covered Total %
branch 53 110 48.1


line true false branch
31 0 11 unless $$import{$_}{'use'}
39 0 15 if $name =~ /^\+(.+)$/
43 15 0 ref $$module{'args'} eq 'ARRAY' ? :
48 4 11 unless (eval "require $name")
49 0 4 if $optional
56 4 11 if (not $can_import) { }
0 11 elsif ($direct_import) { }
57 2 2 if @module_args > 0
82 4 7 if ($last)
83 0 4 if (not *{$last;}) { }
95 4 0 if $restore
106 7 2 if ($first_module)
107 7 0 ref $$first_module{'args'} eq 'ARRAY' ? :
110 0 7 unless $can_import
121 11 0 unless (s/^\://)
0 10 unless $tasks
132 0 10 unless my $parser = $$self{'parser'}
133 10 0 $self->_has_rigfile_tasks(\@tasks) ? :
138 0 11 unless exists $$profile{$task_name}
141 0 11 unless ref $task eq 'HASH'
147 0 12 if $@
149 0 12 $@ ? :
12 0 if $res
158 0 10 unless ref $rig eq 'HASH'
162 10 1 unless ref $also eq 'ARRAY'
165 0 1 unless ref $also_rig eq 'HASH'
168 2 0 unless exists $$rig{$also_task}
173 1 10 if (exists $also_augment{$_}) { }
192 0 11 unless ref $section eq 'ARRAY'
195 12 5 if (ref $_ eq 'HASH') { }
200 0 12 if $optional
212 0 5 if $optional
225 5 10 unless exists $$module{'alias'}
226 0 10 unless ref $$module{'alias'} eq 'HASH'
230 0 22 unless $$module{'alias'}{$orig}
231 22 0 unless @alias > 0
232 0 0 $suppress ? :
239 0 0 if ($suppress)
248 0 12 unless ref $subs eq 'ARRAY'
267 0 3 unless (defined &{$load_sub;})
268 0 0 unless eval "require $module"
278 15 0 unless defined $current and defined $version
279 0 0 if 'version'->parse($current) < 'version'->parse($version)
294 0 0 ref $$module{'args'} eq 'ARRAY' ? :
297 0 0 if (not $can_import) { }
298 0 0 if @module_args > 0
304 0 0 if ($last)
305 0 0 if (not *{$last;}) { }
316 0 0 if $restore
325 0 0 if ($first_module)
327 0 0 ref $$first_module{'args'} eq 'ARRAY' ? :
330 0 0 unless $can_import
343 5 12 unless $$module{'args'}
349 17 0 if defined $$module{'version'} and defined $ret{$name}{'version'} and $$module{'version'} > $ret{$name}{'version'} or not defined $ret{$name}{'version'}
353 15 2 if defined $$module{'optional'} and defined $ret{$name}{'optional'} and $$module{'optional'} > $ret{$name}{'optional'} or not defined $ret{$name}{'optional'}