RemoteHTTP/UserAgent.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RemoteHTTP.pm ↑ Summary
1 package Catalyst::Authentication::Credential::RemoteHTTP::UserAgent;
2  
3 # ABSTRACT: Wrapper for LWP::UserAgent
4  
5 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 4 ▶use base qw/LWP::UserAgent/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 our $VERSION = '0.05'; # VERSION
10 4 our $AUTHORITY = 'cpan:NIGELM'; # AUTHORITY
11  
12 8 ▶sub set_credentials {
Subroutine set_credentials: called CC=1 SCAR=0.0
Pod documented
13 8 my ($self, $user, $pass) = @_;
14 8 @{ $self->{credentials} } = ($user, $pass);
15 }
16  
17 6 ▶sub get_basic_credentials {
Subroutine get_basic_credentials: called CC=1 SCAR=0.0
Pod documented
18 6 my $self = shift;
19 6 return @{ $self->{credentials} };
20 }
21  
22  
23 4 1;
24  
25 __END__
« RemoteHTTP.pm ↑ Summary