Lite/RelyingParty/DirectCommunication.pm

filter: Statementstmt 64.0% 16 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 60.6% 20 / 33 CC 2 SCAR 9.8
CC
2
Cov
59%
send_request
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Lite/RelyingParty/Discover/Fetcher/XRI.pm ↑ Summary Lite/RelyingParty/Store/OnMemory.pm »
1 package OpenID::Lite::RelyingParty::DirectCommunication;
2  
3 1 ▶use Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 with 'OpenID::Lite::Role::AgentHandler';
5 1 with 'OpenID::Lite::Role::ErrorHandler';
6  
7 1 ▶use HTTP::Request;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use OpenID::Lite::Message;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶sub send_request {
Subroutine send_request: not called CC=2 SCAR=17.9
Pod undocumented
11 0 my ( $self, $url, $params ) = @_;
12 0 my $req = HTTP::Request->new( POST => $url );
13 0 $req->header( 'Content-Type' => q{application/x-www-form-urlencoded} );
14 0 $req->content( $params->to_post_body );
15 0 my $res = $self->agent->request($req);
16 0 ▶ if ($res->is_success) {
Branch: 1 branch
BranchTrueFalseTotal
if ($res->is_success) 0 0 0
17 0 my $params = OpenID::Lite::Message->from_key_value($res->content);
18 0 return $params;
19 }
20 0 return $self->ERROR($res->status_line);
21 }
22  
23 1 ▶no Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 __PACKAGE__->meta->make_immutable;
25 1 1;
26  
« Lite/RelyingParty/Discover/Fetcher/XRI.pm ↑ Summary Lite/RelyingParty/Store/OnMemory.pm »