inc/Module/Install/Win32.pm

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