Lite/Role/ErrorHandler.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 2 totaltotal 76.4% 13 / 17 CC 2 SCAR 4.2
CC
2
Cov
91%
ERROR
2.0
BEGIN
1.0
errstr
1.0
CRAP 1.5
« Lite/RelyingParty/Store/Null.pm ↑ Summary Lite/Role/Storable.pm »
1 package OpenID::Lite::Role::ErrorHandler;
2  
3 8 ▶use Any::Moose '::Role';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 8 has '_errstr' => (
6 is => 'rw',
7 isa => 'Str',
8 );
9  
10 15 ▶sub ERROR {
Subroutine ERROR: called CC=2 SCAR=7.1
Pod undocumented
11 15 my ( $self, $msg ) = @_;
12 15 ▶ $self->_errstr( $msg || '' );
Condition50%1/2
$msg || ''
l!l
150
MC/DC0%0/1
$msg || ''
$msg
Truth table50%1/2
A
A= $msg
Aresult
11
00
13 15 return;
14 }
15  
16 19 ▶sub errstr {
Subroutine errstr: called CC=1 SCAR=0.0
Pod undocumented
17 19 shift->_errstr;
18 }
19  
20 8 1;
21  
« Lite/RelyingParty/Store/Null.pm ↑ Summary Lite/Role/Storable.pm »