Lite/RelyingParty/Discover/Method/Base.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 1 totaltotal 82.7% 24 / 29 CC 3 SCAR 7.6
CC
3
Cov
91%
discover
3.0
_build__fetcher
2.0
_build__parser
2.0
CRAP 2.1
« Lite/SignatureMethod.pm ↑ Summary Lite/RelyingParty/Discover/Fetcher/Yadis/HTMLExtractor.pm »
1 package OpenID::Lite::RelyingParty::Discover::Method::Base;
2  
3 4 ▶use Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 with 'OpenID::Lite::Role::Discoverer';
5 4 with 'OpenID::Lite::Role::ErrorHandler';
6 4 with 'OpenID::Lite::Role::AgentHandler';
7  
8 4 has '_fetcher' => (
9 is => 'ro',
10 lazy_build => 1,
11 );
12  
13 4 has '_parser' => (
14 is => 'ro',
15 lazy_build => 1,
16 );
17  
18 15 ▶sub discover {
Subroutine discover: called CC=3 SCAR=11.0
Pod undocumented
19 15 my ( $self, $identifier ) = @_;
20 15 ▶ my $result = $self->_fetcher->fetch( $identifier->as_string )
Branch: 1 branch
BranchTrueFalseTotal
my $result = $self->_fetcher->fetch($identifier->as_string) or return $self->ERROR($self->_fetcher->errstr) 10 5 15
21 or return $self->ERROR( $self->_fetcher->errstr );
22 10 ▶ my $services = $self->_parser->parse( $result )
Branch: 1 branch
BranchTrueFalseTotal
my $services = $self->_parser->parse($result) or return $self->ERROR($self->_parser->errstr) 8 2 10
23 or return $self->ERROR( $self->_parser->errstr );
24 8 return $services;
25 }
26  
27 0 ▶sub _build__fetcher {
Subroutine _build__fetcher: not called CC=1 SCAR=6.9
28 0 die "Abstract Method";
29 }
30  
31  
32 0 ▶sub _build__parser {
Subroutine _build__parser: not called CC=1 SCAR=6.9
33 0 die "Abstract Method";
34 }
35  
36 4 ▶no Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
37 4 __PACKAGE__->meta->make_immutable;
38 4 1;
39  
40  
« Lite/SignatureMethod.pm ↑ Summary Lite/RelyingParty/Discover/Fetcher/Yadis/HTMLExtractor.pm »