Lite/RelyingParty/Associator/ParamBuilder.pm

filter: Statementstmt 70.3% 19 / 27 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 66.6% 24 / 36 CC 2 SCAR 8.9
CC
2
Cov
66%
build_params
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« Lite/RelyingParty/Store/OnMemory.pm ↑ Summary Lite/RelyingParty/Discover/Parser/HTML.pm »
1 package OpenID::Lite::RelyingParty::Associator::ParamBuilder;
2  
3 1 ▶use Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 with 'OpenID::Lite::Role::ErrorHandler';
5  
6 1 has 'session' => (
7 is => 'rw',
8 isa => 'OpenID::Lite::SessionHandler',
9 required => 1,
10 );
11  
12 1 ▶use OpenID::Lite::Message;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use OpenID::Lite::Constants::Namespace qw(SPEC_2_0);
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use OpenID::Lite::Constants::ModeType qw(ASSOCIATION);
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 0 ▶sub build_params {
Subroutine build_params: not called CC=2 SCAR=17.9
Pod undocumented
17 0 my ( $self, $service, $assoc_type ) = @_;
18 0 my $params = OpenID::Lite::Message->new;
19 0 ▶ unless ( $service->requires_compatibility_mode ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($service->requires_compatibility_mode) 0 0 0
20 0 $params->set( ns => SPEC_2_0 );
21 }
22 0 $params->set( mode => ASSOCIATION );
23 0 $params->set( assoc_type => $assoc_type );
24 0 $self->session->set_request_params( $service, $params );
25 0 return $params;
26 }
27  
28 1 ▶no Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 1 __PACKAGE__->meta->make_immutable;
30 1 1;
31  
« Lite/RelyingParty/Store/OnMemory.pm ↑ Summary Lite/RelyingParty/Discover/Parser/HTML.pm »