Lite/RelyingParty/Discover/Fetcher/HTML.pm

filter: Statementstmt 59.0% 13 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 55.1% 16 / 29 CC 2 SCAR 11.0
CC
2
Cov
54%
fetch
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« Lite/RelyingParty/CheckID/Result.pm ↑ Summary Lite/SessionHandler.pm »
1 package OpenID::Lite::RelyingParty::Discover::Fetcher::HTML;
2  
3 2 ▶use Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 with 'OpenID::Lite::Role::AgentHandler';
5 2 with 'OpenID::Lite::Role::ErrorHandler';
6  
7 2 ▶use OpenID::Lite::RelyingParty::Discover::FetchResult;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 0 ▶sub fetch {
Subroutine fetch: not called CC=2 SCAR=17.9
Pod undocumented
10 0 my ( $self, $uri ) = @_;
11  
12 0 my $res = $self->agent->get($uri);
13 0 ▶ return $self->ERROR(
Branch: 1 branch
BranchTrueFalseTotal
unless $res->is_success 0 0 0
14 sprintf q{Failed to HTML based discovery for url "%s"}, $uri )
15 unless $res->is_success;
16  
17 0 my $result = OpenID::Lite::RelyingParty::Discover::FetchResult->new;
18 0 $result->final_url( $res->base->as_string );
19 0 $result->normalized_identifier( $uri );
20 0 $result->content_type( lc $res->header('Content-Type') );
21 0 $result->content( $res->content );
22  
23 0 return $result;
24 }
25  
26 2 ▶no Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 2 __PACKAGE__->meta->make_immutable;
28 2 1;
29  
« Lite/RelyingParty/CheckID/Result.pm ↑ Summary Lite/SessionHandler.pm »