lib/Module/Install/Admin/Compiler.pm

filter: Statementstmt 95.8% 23 / 24 Branchbran 50.0% 2 / 4 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 84.6% 33 / 39 CC 4 SCAR 8.9
CC
4
Cov
87%
ppport
4.6
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« lib/Module/Install/With.pm ↑ Summary lib/Module/Install/Admin/WriteAll.pm »
1 package Module::Install::Admin::Compiler;
2  
3 46 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 46 ▶use Module::Install::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 46 ▶use File::Remove ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6 46 ▶use Devel::PPPort ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 46 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
9 46 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
10 46 $VERSION = '1.21';
11 46 @ISA = qw{Module::Install::Base};
12 }
13  
14 1 ▶sub ppport {
Subroutine ppport: called CC=4 SCAR=15.2
Pod undocumented
15 1 my $self = shift;
16 1 ▶ my $file = shift || 'ppport.h';
Condition50%1/2
shift() || 'ppport.h'
l!l
01
MC/DC0%0/1
shift() || 'ppport.h'
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
17 1 ▶ if ( -f $file ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-f $file) 0 1 1
18 # Update the file to a newer version
19 0 File::Remove::remove($file);
20 }
21  
22 # Install the file (and remove on realclean)
23 1 ▶ Devel::PPPort::WriteFile( $file ) or die "Failed to write $file";
Branch: 1 branch
BranchTrueFalseTotal
Devel::PPPort::WriteFile($file) or die "Failed to write $file" 1 0 1
24 1 $self->realclean_files( $file );
25 }
26  
27 46 1;
« lib/Module/Install/With.pm ↑ Summary lib/Module/Install/Admin/WriteAll.pm »