bin/sitepods

filter: Statementstmt 93.3% 14 / 15 Branchbran 60.0% 6 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 82.1% 23 / 28 CC 1 SCAR 0.0
CC
1
Cov
80%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« bin/pmload ↑ Summary bin/stdpods »
1 #!/usr/bin/env perl
2 # sitepods - 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 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use FindBin qw($Bin);
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 our $VERSION = '2.1.0';
14  
15 1 ▶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: $!" 1 0 1
16  
17 1 ▶while (<PROG>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline PROG)) 1681 1 1682
18 1681 ▶ if ( $^O eq "MSWin32" ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($^O eq 'MSWin32') { } 0 1681 1681
19 0 ▶ print if /\/site\//;
Branch: 1 branch
BranchTrueFalseTotal
if m[/site/] 0 0 0
20 } else {
21 1681 ▶ print if /site_perl/;
Branch: 1 branch
BranchTrueFalseTotal
if /site_perl/ 925 756 1681
22 }
23 }
24  
25 __END__
« bin/pmload ↑ Summary bin/stdpods »