Branch Coverage

blib/lib/App/hopen.pm
Criterion Covered Total %
branch 71 134 52.9


line true false branch
348 0 6 if (not $opts_ok or have("usage") or have("h") or have("man"))
356 0 3 unless $@
362 0 3 unless $opts_ok
364 3 0 if have("usage")
366 0 0 if have("h")
373 0 3 if have("man")
388 0 6 if @{$params{'from'};}
389 0 6 if @{$params{'from'};} > 1
393 0 6 if $v2 eq ""
394 0 6 if defined $v2 and !&looks_like_number($v2) || int $v2 < 0
436 0 9 unless my $fn = shift()
438 0 9 if $opts{'phase'}
461 0 9 $opts{'quiet'} ? :
478 0 9 $opts{'quiet'} ? :
485 0 9 if ($opts{'libs'})
500 0 9 if (ref $fn eq 'HASH') { }
505 0 0 defined $opts{'phase'} ? :
514 3 6 if (isMYH($fn) and not defined $opts{'phase'}) { }
523 0 6 isMYH($fn) ? :
556 0 1 unless my $new_phase = shift()
0 0 unless my $new_phase = shift()
0 0 unless my $new_phase = shift()
557 0 1 if $App::hopen::BuildSystemGlobals::Phase eq $new_phase
1 0 if $App::hopen::BuildSystemGlobals::Phase eq $new_phase
0 1 if $App::hopen::BuildSystemGlobals::Phase eq $new_phase
0 1 if $App::hopen::BuildSystemGlobals::Phase eq $new_phase
1 0 if $App::hopen::BuildSystemGlobals::Phase eq $new_phase
0 1 if $App::hopen::BuildSystemGlobals::Phase eq $new_phase
558 0 1 unless defined phase_idx($new_phase)
0 1 unless defined phase_idx($new_phase)
559 6 3 unless ($setting_phase_allowed)
629 0 9 if $@
645 9 0 if $hrAddlData
679 0 7 if $opts{'phase'}
681 0 7 unless ref $lrHopenFiles eq "ARRAY"
692 0 1 $App::hopen::Build->empty ? :
701 3 3 if $App::hopen::Build->empty or $opts{'norun'}
737 3 4 if ($opts{'FRESH'})
741 0 6 if ($opts{'PRINT_VERSION'})
743 0 1 if ($ver =~ /^([^\.]+)\.(\d{3})(\d{3})/u) { }
748 0 1 if $App::hopen::VERBOSE >= 1
756 0 6 unless defined phase_idx($App::hopen::Phase)
761 6 1 $opts{'PROJ_DIR'} ? :
766 6 1 if ($opts{'DEST_DIR'}) { }
774 0 7 if $proj_dir eq $dest_dir
781 0 6 if (-e $proj_dir->file("MY.hopen.pl"))
792 3 4 if ($myhopen and -e $myhopen)
798 0 3 if ($stat->mtime > $myhstat->mtime or $stat->ctime > $myhstat->ctime)
801 0 0 unless $App::hopen::QUIET
809 0 7 if ($opts{'EVAL'})
819 1 0 ref $_ eq 'HASH' ? :
823 0 6 unless (@$lrHopenFiles)
829 0 7 unless File::Path::Tiny::mk($dest_dir)
837 6 1 unless $App::hopen::QUIET
841 3 4 if ($myhopen and not $opts{'BUILD'})
848 4 0 unless $opts{'BUILD'} or $_did_set_phase or $App::hopen::QUIET
854 0 6 unless $gen_class
859 0 7 unless $gen = "$gen_class"->new("proj_dir", $proj_dir, "dest_dir", $dest_dir, "architecture", $opts{'ARCHITECTURE'})
869 0 7 unless $toolset_class
876 0 7 if ($opts{'BUILD'})
885 7 0 if (@$lrHopenFiles) { }
965 0 3 if ($opts{'FRESH'} and $opts{'BUILD'})
971 0 7 if $opts{'VERBOSE2'} > $opts{'VERBOSE'}
974 0 7 if $opts{'QUIET'}
980 0 7 if (not $App::hopen::QUIET and $opts{'VERBOSE'})
994 7 0 unless $App::hopen::VERBOSE >= 3
1004 0 6 if ($msg)