alienfile

filter: Statementstmt 63.1% 12 / 19 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 45.1% 14 / 31 CC 4 SCAR 26.1
CC
4
Cov
46%
__ANON__
20.0
BEGIN
1.0
__ANON__
1.0
CRAP 13.7
↑ Summary blib/lib/Alien/hiredis/Install/Files.pm »
1 1 ▶use alienfile;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 1 plugin PkgConfig => pkg_name => 'hiredis', minimum_version => '0.11.0';
4 1 plugin 'Build::Make' => make_type => 'gmake';
5  
6 0 ▶meta->around_hook(probe => sub {
Subroutine __ANON__: not called CC=4 SCAR=30.0
7 0 my $orig = shift;
8 0 my $build = shift;
9 0 my $install_type = $orig->($build, @_);
10 0 ▶ if ($install_type eq 'system') {
Branch: 1 branch
BranchTrueFalseTotal
if ($install_type eq "system") 0 0 0
11 0 my $version = $build->hook_prop->{version};
12 0 ▶ return 'share' if !defined $version or $version eq '0.13.0';
Branch: 1 branch
BranchTrueFalseTotal
if not defined $version or $version eq "0.13.0" 0 0 0
Condition0%0/3
not defined $version or $version eq "0.13.0"
l!l&&r!l&&!r
000
MC/DC0%0/2
not defined $version or $version eq "0.13.0"
not defined $version $version eq "0.13.0"
Truth table0%0/3
not(A) or B
A= not defined $versionB= $version eq "0.13.0"
ABresult
1X1
011
000
13 }
14 0 return $install_type;
15 1 });
16  
17 1 ▶share {
Subroutine __ANON__: called CC=1 SCAR=0.0
18 1 start_url 'src/hiredis-1.4.1.tar.gz';
19 1 plugin 'Fetch::Local';
20 1 plugin Extract => format => 'tar.gz';
21 1 build [
22 [ '%{make} PREFIX=%{.install.prefix}' ],
23 [ '%{make} PREFIX=%{.install.prefix} install' ],
24 ];
25 1 plugin 'Gather::IsolateDynamic';
26 1 };
↑ Summary blib/lib/Alien/hiredis/Install/Files.pm »