t/abi_consumer/Makefile.PL

filter: Statementstmt 100% 24 / 24 Branchbran 50.0% 2 / 4 Conditioncond 40.0% 2 / 5 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 79.4% 31 / 39 CC 1 SCAR 0.0
CC
1
Cov
85%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary include/clamav/clamd_compat.h »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use ExtUtils::MakeMaker;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # A consumer resolves the provider through ExtUtils::Depends when it is
6 # installed, and falls back to sibling -I paths when it is not - which is
7 # the case inside the provider's own test suite.
8 1 my %args = (
9 NAME => 'TestConsumer',
10 VERSION => '0.01',
11 OBJECT => 'Consumer$(OBJ_EXT)',
12 );
13  
14 1 my $wired = 0;
15 1 ▶if (eval { require ExtUtils::Depends; 1 }) {
Branch: 1 branch
BranchTrueFalseTotal
if (eval { do { require ExtUtils::Depends; 1 } }) 1 0 1
16 1 my $pkg = eval { ExtUtils::Depends->new('TestConsumer', 'ClamAV::Clamd') };
17 1 ▶ if ($pkg && !$@) {
Branch: 1 branch
BranchTrueFalseTotal
if ($pkg and not $@) 1 0 1
Condition33%1/3
$pkg and not $@
!ll&&!rl&&r
001
MC/DC0%0/2
$pkg and not $@
$pkg not $@
Truth table33%1/3
A and not(B)
A= $pkgB= not $@
ABresult
0X0
100
111
18 1 my %dep = $pkg->get_makefile_vars;
19 1 delete $dep{LIBS};
20 1 delete $dep{LDFROM};
21 1 %args = (%args, %dep);
22 1 $wired = 1;
23 }
24 }
25 1 ▶$args{INC} = join ' ', ($args{INC} || ''), '-I../../include';
Condition50%1/2
$args{'INC'} || ''
l!l
10
MC/DC0%0/1
$args{'INC'} || ''
$args{'INC'}
Truth table50%1/2
A
A= $args{'INC'}
Aresult
11
00
26  
27 1 WriteMakefile(%args);
↑ Summary include/clamav/clamd_compat.h »