Branch Coverage

File:blib/lib/App/makefilepl2cpanfile.pm
Coverage:100.0%

line%coveragebranch
668100TFdefined $args->{'content'} ? :
681100TFif ($existing =~ /$DEVELOP_OPEN_RE/gx)
683100TFif ($existing =~ /^[ \t]*\};/gmx)
694100TFunless $mod =~ /$MODULE_NAME_RE/
700100TFif (length($ver // "") and not _valid_requirement($ver))
709100TFif ($with_dev)
718100TFunless $dev->{$_}
799100TFunless -f $makefile and -r _
802100TFunless (eval {         do {         $content = Path::Tiny::path($makefile)->slurp_utf8; 1 } })
810100TFif ref $@ or not $@ =~ /decode|ill-formed|utf/xi
962100TFif not defined $content or ref $content
978100TFif _in_comment($comments, $at)
990100TFif _in_comment($comments, $at)
996100TFunless $VALID_PHASE{$phase_name}
997100TFif _in_comment($comments, $phase_at)
1002100TFunless $VALID_REL{$rel}
1003100TFif _in_comment($comments, $rel_at)
1020100TFif _in_comment(\@prereqs_spans, $at)
1021100TFif _in_comment($comments, $at)
1046100TFif (substr($content, $-[0], 1) eq '{') { }
100TFelsif (@open) { }
1118100TFif (index($line, "#") != -1)
1124100TFif (defined $comment)
1151100TFunless _valid_requirement($ver)
1154100TF$i == $#pairs ? :
1171100TFif not defined $content or ref $content
1172100TFunless $content =~ /\bMIN_PERL_VERSION\b\s*=>\s*$VALUE_TOKEN_RE/x
1174100TF_valid_version($ver) ? :
1193100TFif (index($line, "#") != -1 and $line =~ /$TO_COMMENT_RE/x)
1212100TFif ($pos < $start) { }
100TFelsif ($pos >= $end) { }
1228100TFdefined $ver && $ver =~ /$VERSION_RE/x ? :
1240100TFdefined $req && $req =~ /$REQUIREMENT_RE/x ? :
1275100TFunless length($home // "")
1284100TFunless (@stat)
1285100TFunless $!{'ENOENT'} or $!{'ENOTDIR'}
1292100TFunless Fcntl::S_ISREG($stat[2])
1299100TFunless ($yaml)
1308100TFref $doc eq 'HASH' ? :
1309100TFunless (ref $develop eq "HASH")
1320100TFunless ($mod =~ /$MODULE_NAME_RE/)
1328100TFunless ($v eq "" or _valid_requirement($v))
1357100TFif _has_version($min_perl)
1362100TF$phase eq 'runtime' ? :
1366100TFif $body eq ""
1367100TF$phase eq 'runtime' ? :
1405100TFif _has_version($entry->{'version'})
1411100TFif (defined $entry->{'comment'}) { }
1437100TFunless defined $ver
1438100TF$ver =~ /\A \s* >= \s* v? [0._]* \s* \z/x ? :
100TFif $ver =~ /[<>=!]/x
1439100TF$ver =~ /[1-9]/x ? :