blib/lib/Event/MakeMaker.pm

filter: Statementstmt 81.4% 22 / 27 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 75.6% 28 / 37 CC 1 SCAR 1.8
CC
1
Cov
77%
event_args
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Event/signal.pm ↑ Summary c/tied.c »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Event::MakeMaker;
3 1 ▶use Config;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use vars qw(@EXPORT_OK $installsitearch);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 @EXPORT_OK = qw(&event_args $installsitearch);
7  
8 1 my %opt;
9 1 for my $opt (split /:+/, $ENV{PERL_MM_OPT}) {
10 0 my ($k,$v) = split /=/, $opt;
11 0 $opt{$k} = $v;
12 }
13  
14 1 my $extra = $Config{sitearch};
15 $extra =~ s,$Config{prefix},$opt{PREFIX}, if
16 1 ▶ exists $opt{PREFIX};
Branch: 1 branch
BranchTrueFalseTotal
if exists $opt{"PREFIX"} 0 1 1
17  
18 1 for my $d ($extra, @INC) {
19 1 ▶ if (-e "$d/Event/EventAPI.h") {
Branch: 1 branch
BranchTrueFalseTotal
if (-e "$d/Event/EventAPI.h") 1 0 1
20 1 $installsitearch = $d;
21 last
22 1 }
23 }
24  
25 0 ▶sub event_args {
Subroutine event_args: not called CC=1 SCAR=6.9
Pod undocumented
26 0 my %arg = @_;
27 0 $arg{INC} .= " -I$installsitearch/Event";
28 0 %arg;
29 }
30  
31 1 1;
32 __END__
« blib/lib/Event/signal.pm ↑ Summary c/tied.c »