blib/lib/Alien/ngtcp2.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond 50.0% 3 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 100% 7 / 7 Podpod 100% 4 / 4 totaltotal 86.9% 40 / 46 CC 4 SCAR 6.0
CC
4
Cov
91%
crypto_libs
3.1
crypto_cflags
2.0
BEGIN
1.0
CRAP 1.8
« blib/lib/Alien/ngtcp2/Install/Files.pm ↑ Summary
1 package Alien::ngtcp2;
2  
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use parent 'Alien::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 5 our $VERSION = '0.03';
8  
9 1 ▶sub crypto_backend {
Subroutine crypto_backend: called CC=1 SCAR=0.0
Pod documented
10 1 my ($class) = @_;
11  
12 1 return $class->runtime_prop->{my_crypto_backend};
13 }
14  
15 5 ▶sub crypto_package {
Subroutine crypto_package: called CC=1 SCAR=0.0
Pod documented
16 5 my ($class) = @_;
17  
18 5 return $class->runtime_prop->{my_crypto_package};
19 }
20  
21 2 ▶sub crypto_cflags {
Subroutine crypto_cflags: called CC=2 SCAR=7.0
Pod documented
22 2 my ($class) = @_;
23  
24 2 my $flags
25 = $class->alt($class->crypto_package)->cflags;
26 my $openssl
27 2 ▶ = $class->runtime_prop->{my_openssl_cflags} || '';
Condition50%1/2
$class->runtime_prop->{'my_openssl_cflags'} || ''
l!l
20
MC/DC0%0/1
$class->runtime_prop->{'my_openssl_cflags'} || ''
$class->runtime_prop->{'my_openssl_cflags'}
Truth table50%1/2
A
A= $class->runtime_prop->{'my_openssl_cflags'}
Aresult
11
00
28  
29 2 return join ' ', grep { length } $flags, $openssl;
30 }
31  
32 2 ▶sub crypto_libs {
Subroutine crypto_libs: called CC=3 SCAR=11.2
Pod documented
33 2 my ($class) = @_;
34  
35 2 my $helper = $class->alt($class->crypto_package);
36 2 ▶ my $picotls = $class->runtime_prop->{my_picotls_libs} || '';
Condition50%1/2
$class->runtime_prop->{'my_picotls_libs'} || ''
l!l
20
MC/DC0%0/1
$class->runtime_prop->{'my_picotls_libs'} || ''
$class->runtime_prop->{'my_picotls_libs'}
Truth table50%1/2
A
A= $class->runtime_prop->{'my_picotls_libs'}
Aresult
11
00
37 2 ▶ my $openssl = $class->runtime_prop->{my_openssl_libs} || '';
Condition50%1/2
$class->runtime_prop->{'my_openssl_libs'} || ''
l!l
20
MC/DC0%0/1
$class->runtime_prop->{'my_openssl_libs'} || ''
$class->runtime_prop->{'my_openssl_libs'}
Truth table50%1/2
A
A= $class->runtime_prop->{'my_openssl_libs'}
Aresult
11
00
38  
39 2 return join ' ', grep { length }
40 $helper->libs,
41 $picotls,
42 $class->libs,
43 $openssl;
44 }
45  
46 5 1;
47  
48 __END__
« blib/lib/Alien/ngtcp2/Install/Files.pm ↑ Summary