bin/stdpods

filter: Statementstmt 94.1% 16 / 17 Branchbran 60.0% 6 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 83.3% 25 / 30 CC 1 SCAR 0.0
CC
1
Cov
81%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« bin/sitepods ↑ Summary bin/pfcat »
1 #!/usr/bin/env perl
2 # stdpods - print out the paths to the modules
3 # that this site added
4 #
5 # this is a perl program not a shell script
6 # so that we can use the correct perl
7  
8 # ------ pragmas
9 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use FindBin qw($Bin);
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 3 our $VERSION = '2.0.0';
14  
15 3 system("$^X -S $Bin/basepods");
16 3 ▶open(PROG, "$^X -S $Bin/modpods |") || die "can't fork: $!";
Branch: 1 branch
BranchTrueFalseTotal
open PROG, "$^X -S $main::Bin/modpods |" or die "can't fork: $!" 3 0 3
17 3 ▶while (<PROG>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline PROG)) 5043 3 5046
18 5043 ▶ if ( $^O eq "MSWin32" ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($^O eq 'MSWin32') { } 0 5043 5043
19 0 ▶ print unless /\/site\//;
Branch: 1 branch
BranchTrueFalseTotal
unless m[/site/] 0 0 0
20 } else {
21 5043 ▶ print unless /site_perl/;
Branch: 1 branch
BranchTrueFalseTotal
unless /site_perl/ 2268 2775 5043
22 }
23 }
24 3 close PROG;
25  
26  
27 __END__
« bin/sitepods ↑ Summary bin/pfcat »