dist/t9vPd3GCmf/Foo-Bar-0.01/inc/Module/Install/Win32.pm

filter: Statementstmt 81.8% 18 / 22 Branchbran 25.0% 1 / 4 Conditioncond 33.3% 3 / 9 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 60.0% 27 / 45 CC 6 SCAR 21.3
CC
6
Cov
63%
check_nmake
13.4
BEGIN
1.0
BEGIN
1.0
CRAP 8.5
« dist/t9vPd3GCmf/inc/Module/Install.pm ↑ Summary inc/Module/Install/Win32.pm »
1 #line 1
2 #line 1
3 1 ▶package Module::Install::Win32;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶ 
Subroutine BEGIN: called CC=1 SCAR=0.0
5 use strict;
6 1 ▶use Module::Install::Base ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶ 
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 use vars qw{$VERSION @ISA $ISCORE};
9 1 BEGIN {
10 1 $VERSION = '1.17';
11 @ISA = 'Module::Install::Base';
12 $ISCORE = 1;
13 }
14 1 ▶ 
Subroutine check_nmake: called CC=6 SCAR=26.0
Pod undocumented
15 1 # determine if the user needs nmake, and download it if needed
16 1 sub check_nmake {
17 1 my $self = shift;
18 $self->load('can_run');
19 1 $self->load('get_file');
20  
21 require Config;
22 return unless (
23 1 ▶ $^O eq 'MSWin32' and
Branch: 1 branch
BranchTrueFalseTotal
unless $^O eq "MSWin32" and $Config::Config{"make"} and $Config::Config{"make"} =~ /^nmake\b/i and not $self->can_run("nmake") 1 0 1
Condition33%3/9
$^O eq "MSWin32" and $Config::Config{"make"} and $Config::Config{"make"} =~ /^nmake\b/i and not $self->can_run("nmake")
!ll&&!rl&&r
100
$^O eq "MSWin32" and $Config::Config{"make"} and $Config::Config{"make"} =~ /^nmake\b/i
!ll&&!rl&&r
100
$^O eq "MSWin32" and $Config::Config{"make"}
!ll&&!rl&&r
100
MC/DC0%0/4
$^O eq "MSWin32" and $Config::Config{"make"} and $Config::Config{"make"} =~ /^nmake\b/i and not $self->can_run("nmake")
$^O eq "MSWin32" $Config::Config{"make"} $Config::Config{"make"} =~ /^nmake\b/i not $self->can_run("nmake")
Truth table20%1/5
A and B and C and not(D)
A= $^O eq "MSWin32"B= $Config::Config{"make"}C= $Config::Config{"make"} =~ /^nmake\b/iD= not $self->can_run("nmake")
ABCDresult
0XXX0
10XX0
110X0
11100
11111
24 $Config::Config{make} and
25 $Config::Config{make} =~ /^nmake\b/i and
26 ! $self->can_run('nmake')
27 0 );
28  
29 0 print "The required 'nmake' executable not found, fetching it...\n";
30 0  
31 require File::Basename;
32 my $rv = $self->get_file(
33 url => 'http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe',
34 ftp_url => 'ftp://ftp.microsoft.com/Softlib/MSLFILES/Nmake15.exe',
35 local_dir => File::Basename::dirname($^X),
36 size => 51928,
37 run => 'Nmake15.exe /o > nul',
38 check_for => 'Nmake.exe',
39 remove => 1,
40 0 ▶ );
Branch: 1 branch
BranchTrueFalseTotal
unless $rv 0 0 0
41  
42 die <<'END_MESSAGE' unless $rv;
43  
44 -------------------------------------------------------------------------------
45  
46 Since you are using Microsoft Windows, you will need the 'nmake' utility
47 before installation. It's available at:
48  
49 http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe
50 or
51 ftp://ftp.microsoft.com/Softlib/MSLFILES/Nmake15.exe
52  
53 Please download the file manually, save it to a directory in %PATH% (e.g.
54 C:\WINDOWS\COMMAND\), then launch the MS-DOS command line shell, "cd" to
55 that directory, and run "Nmake15.exe" from there; that will create the
56 'nmake.exe' file needed by this module.
57  
58 You may then resume the installation process described in README.
59  
60 -------------------------------------------------------------------------------
61 END_MESSAGE
62  
63 1 }
64  
65 1;
« dist/t9vPd3GCmf/inc/Module/Install.pm ↑ Summary inc/Module/Install/Win32.pm »