Branch Coverage

blib/lib/App/hopen.pm
Criterion Covered Total %
branch 60 110 54.5


line true false branch
309 0 4 if (not $opts_ok or have('usage') or have('h') or have('man'))
317 0 2 unless $@
323 0 2 unless $opts_ok
325 2 0 if have('usage')
327 0 0 if have('h')
334 0 2 if have('man')
349 0 4 if @{$params{'from'};}
350 0 4 if @{$params{'from'};} > 1
354 0 4 if $v2 eq ''
355 0 4 if defined $v2 and !&looks_like_number($v2) || int $v2 < 0
415 0 6 unless my $fn = shift()
417 0 6 if $opts{'phase'}
440 0 6 $opts{'quiet'} ? :
457 0 6 $opts{'quiet'} ? :
464 0 6 if ($opts{'libs'})
479 0 6 if (ref $fn eq 'HASH') { }
484 0 0 defined $opts{'phase'} ? :
493 2 4 if (isMYH($fn) and not defined $opts{'phase'}) { }
502 0 4 isMYH($fn) ? :
535 4 2 unless ($setting_phase_allowed)
605 0 6 if $@
621 6 0 if $hrAddlData
655 0 4 if $opts{'phase'}
657 0 5 unless ref $lrHopenFiles eq 'ARRAY'
668 0 1 $App::hopen::Build->empty ? :
677 2 3 if $App::hopen::Build->empty or $opts{'norun'}
714 2 2 if ($opts{'FRESH'})
718 0 5 if ($opts{'PRINT_VERSION'})
719 0 0 if ($VERSION =~ /^([^\.]+)\.(\d{3})(\d{3})/u) { }
724 0 1 if $App::hopen::VERBOSE >= 1
732 0 5 unless defined phase_idx($App::hopen::Phase)
737 4 0 $opts{'PROJ_DIR'} ? :
742 4 1 if ($opts{'DEST_DIR'}) { }
750 0 5 if $proj_dir eq $dest_dir
757 1 4 if (-e $proj_dir->file('MY.hopen.pl'))
768 2 3 if ($myhopen and -e $myhopen)
774 0 3 if ($stat->mtime > $myhstat->mtime or $stat->ctime > $myhstat->ctime)
777 0 0 unless $App::hopen::QUIET
785 0 5 if ($opts{'EVAL'})
795 1 0 ref $_ eq 'HASH' ? :
799 0 4 unless (@$lrHopenFiles)
805 0 5 unless File::Path::Tiny::mk($dest_dir)
813 4 1 unless $App::hopen::QUIET
817 2 3 if ($myhopen and not $opts{'BUILD'})
824 3 0 unless $opts{'BUILD'} or $_did_set_phase or $App::hopen::QUIET
830 0 4 unless $gen_class
835 0 5 unless $gen = "$gen_class"->new('proj_dir', $proj_dir, 'dest_dir', $dest_dir, 'architecture', $opts{'ARCHITECTURE'})
845 0 5 unless $toolset_class
852 0 5 if ($opts{'BUILD'})
860 5 0 if (@$lrHopenFiles) { }
941 0 4 if $opts{'VERBOSE2'} > $opts{'VERBOSE'}
944 0 5 if $opts{'QUIET'}
950 0 4 if (not $App::hopen::QUIET and $opts{'VERBOSE'})
965 4 0 unless $App::hopen::VERBOSE >= 3
974 0 4 if ($msg)