Branch Coverage

blib/lib/App/hopen.pm
Criterion Covered Total %
branch 52 110 47.2


line true false branch
287 0 4 if (not $opts_ok or have('usage') or have('h') or have('man'))
295 0 0 unless $@
301 0 0 unless $opts_ok
303 0 0 if have('usage')
305 0 0 if have('h')
312 0 0 if have('man')
327 0 4 if @{$params{'from'};}
328 0 4 if @{$params{'from'};} > 1
332 0 4 if $v2 eq ''
333 0 4 if defined $v2 and !&looks_like_number($v2) || int $v2 < 0
393 0 6 unless my $fn = shift()
395 0 6 if $opts{'phase'}
418 0 6 $opts{'quiet'} ? :
435 0 6 $opts{'quiet'} ? :
442 0 6 if ($opts{'libs'})
457 0 6 if (ref $fn eq 'HASH') { }
462 0 0 defined $opts{'phase'} ? :
471 2 4 if (isMYH($fn) and not defined $opts{'phase'}) { }
480 0 4 isMYH($fn) ? :
511 4 2 unless ($setting_phase_allowed)
581 0 6 if $@
594 6 0 if $hrAddlData
628 0 4 if $opts{'phase'}
630 0 4 unless ref $lrHopenFiles eq 'ARRAY'
641 0 0 $App::hopen::Build->empty ? :
650 2 2 if $App::hopen::Build->empty or $opts{'norun'}
687 2 2 if ($opts{'FRESH'})
691 0 4 if ($opts{'PRINT_VERSION'})
692 0 0 if ($VERSION =~ /^([^\.]+)\.(\d{3})(\d{3})/u) { }
697 0 0 if $App::hopen::VERBOSE >= 1
705 0 4 unless defined phase_idx($App::hopen::Phase)
710 4 0 $opts{'PROJ_DIR'} ? :
715 4 0 if ($opts{'DEST_DIR'}) { }
723 0 4 if $proj_dir eq $dest_dir
730 0 4 if (-e $proj_dir->file('MY.hopen.pl'))
741 2 2 if ($myhopen and -e $myhopen)
747 0 2 if ($stat->mtime > $myhstat->mtime or $stat->ctime > $myhstat->ctime)
750 0 0 unless $App::hopen::QUIET
758 0 4 if ($opts{'EVAL'})
768 0 0 ref $_ eq 'HASH' ? :
771 0 4 unless $myhopen or @$lrHopenFiles
777 0 4 unless File::Path::Tiny::mk($dest_dir)
785 4 1 unless $App::hopen::QUIET
789 2 3 if ($myhopen and not $opts{'BUILD'})
796 2 1 unless $opts{'BUILD'} or $_did_set_phase or $App::hopen::QUIET
802 0 5 unless $gen_class
807 0 5 unless $gen = "$gen_class"->new('proj_dir', $proj_dir, 'dest_dir', $dest_dir, 'architecture', $opts{'ARCHITECTURE'})
817 0 5 unless $toolset_class
824 0 4 if ($opts{'BUILD'})
832 4 0 if (@$lrHopenFiles) { }
913 0 4 if $opts{'VERBOSE2'} > $opts{'VERBOSE'}
916 0 4 if $opts{'QUIET'}
922 0 4 if (not $App::hopen::QUIET and $opts{'VERBOSE'})
937 4 0 unless $App::hopen::VERBOSE >= 3
943 0 4 if ($msg)