AUR/UserAgent.pm

filter: Statementstmt 100% 19 / 19 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 93.1% 27 / 29 SCAR 6.9
CC
2
Cov
95%
InitTLS
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« AUR/Maintainer.pm ↑ Summary
1 package WWW::AUR::UserAgent;
2  
3 9 ▶use warnings 'FATAL' => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 9 ▶use LWP::UserAgent qw();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 9 ▶use WWW::AUR qw();
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 9 our @ISA = qw(LWP::UserAgent);
10  
11 sub new
12 {
13 10 ▶ my $class = shift;
Subroutine new: called CC=1 SCAR=0.0
Pod documented
14  
15 10 $class->SUPER::new( 'agent' => "WWW::AUR/v$WWW::AUR::VERSION", @_ );
16 }
17  
18 #---CLASS METHOD---
19 sub InitTLS
20 {
21 9 ▶ eval { require LWP::Protocol::https; 1 } or
Subroutine InitTLS: called CC=2 SCAR=7.1
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
eval { do { require LWP::Protocol::https; 1 } } or die "failed to load LWP::Protocol::https, error:\n$@\n" . "(ensure that LWP::Protocol::https is installed)\n" 0 9 9
22 die "failed to load LWP::Protocol::https, error:\n$@\n"
23 . "(ensure that LWP::Protocol::https is installed)\n"
24 }
25  
26 9 1;
« AUR/Maintainer.pm ↑ Summary