blib/lib/Win32/Autoglob.pm

filter: Statementstmt 92.8% 13 / 14 Branchbran 25.0% 1 / 4 Conditioncond 16.6% 1 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 58.0% 18 / 31 CC 1 SCAR 0.9
CC
1
Cov
62%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
↑ Summary
1  
2 1 require 5;
3 package Win32::Autoglob;
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $VERSION = '1.01';
7  
8 @ARGV = map {;
9 0 ▶ ( defined($_) and m/[\*\?]/ ) ? sort(glob($_)) : $_
Subroutine BEGIN: called CC=1 SCAR=2.6
Branch: 1 branch
BranchTrueFalseTotal
defined $_ && /[\*\?]/ ? : 0 0 0
Condition0%0/3
defined $_ and /[\*\?]/
!ll&&!rl&&r
000
MC/DC0%0/2
defined $_ and /[\*\?]/
defined $_ /[\*\?]/
Truth table0%0/3
A and B
A= defined $_B= /[\*\?]/
ABresult
0X0
100
111
10 }
11 @ARGV
12 1 ▶ if $^O eq "MSWin32" and !$ENV{'SHELL'};
Branch: 1 branch
BranchTrueFalseTotal
if $^O eq "MSWin32" and not $ENV{"SHELL"} 0 1 1
Condition33%1/3
$^O eq "MSWin32" and not $ENV{"SHELL"}
!ll&&!rl&&r
100
MC/DC0%0/2
$^O eq "MSWin32" and not $ENV{"SHELL"}
$^O eq "MSWin32" not $ENV{"SHELL"}
Truth table33%1/3
A and not(B)
A= $^O eq "MSWin32"B= not $ENV{"SHELL"}
ABresult
0X0
100
111
13 # cygwin, which /does/ do globbing, sets SHELL !
14 ;
15 1 1;
16  
17 __END__
↑ Summary