File Coverage

blib/lib/OpenID/Lite/RelyingParty/Discover/Method/HTML.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package OpenID::Lite::RelyingParty::Discover::Method::HTML;
2              
3 2     2   1288 use Any::Moose;
  2         5  
  2         17  
4             extends 'OpenID::Lite::RelyingParty::Discover::Method::Base';
5              
6 2     2   2244 use OpenID::Lite::RelyingParty::Discover::Fetcher::HTML;
  2         8  
  2         46  
7 2     2   1445 use OpenID::Lite::RelyingParty::Discover::Parser::HTML;
  2         8  
  2         139  
8              
9             override '_build__fetcher' => sub {
10             my $self = shift;
11             return OpenID::Lite::RelyingParty::Discover::Fetcher::HTML->new(
12             agent => $self->agent );
13             };
14              
15             override '_build__parser' => sub {
16             my $self = shift;
17             return OpenID::Lite::RelyingParty::Discover::Parser::HTML->new;
18             };
19              
20 2     2   140 no Any::Moose;
  2         6  
  2         12  
21             __PACKAGE__->meta->make_immutable;
22             1;
23