AnyUA/Backend.pm

filter: Statementstmt 92.8% 13 / 14 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 4 / 4 totaltotal 88.4% 23 / 26 CC 2 SCAR 3.6
CC
2
Cov
88%
new
2.0
request
2.0
BEGIN
1.0
CRAP 1.4
« AnyUA/Middleware.pm ↑ Summary AnyUA/Backend/HTTP/AnyUA.pm »
1 package HTTP::AnyUA::Backend;
2 # ABSTRACT: A base class for HTTP::AnyUA backends
3  
4  
5 14 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 14 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 14 our $VERSION = '0.904'; # VERSION
9  
10  
11  
12 8 ▶sub new {
Subroutine new: called CC=2 SCAR=7.1
Pod documented
13 8 my $class = shift;
14 8 ▶ my $ua = shift or die 'User agent is required';
Branch: 1 branch
BranchTrueFalseTotal
my $ua = shift() or die "User agent is required" 8 0 8
15 8 bless {ua => $ua}, $class;
16 }
17  
18  
19 0 ▶sub request {
Subroutine request: not called CC=1 SCAR=6.9
Pod documented
20 0 die 'Not yet implemented';
21 }
22  
23  
24 2 ▶sub ua { shift->{ua} }
Subroutine ua: called CC=1 SCAR=0.0
Pod documented
25  
26  
27 2 ▶sub response_is_future { 0 }
Subroutine response_is_future: called CC=1 SCAR=0.0
Pod documented
28  
29 14 1;
30  
31 __END__
« AnyUA/Middleware.pm ↑ Summary AnyUA/Backend/HTTP/AnyUA.pm »