blib/lib/OpenID/Lite/Role/ErrorHandler.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 7 | 7 | 100.0 |
branch | n/a | ||
condition | 1 | 2 | 50.0 |
subroutine | 3 | 3 | 100.0 |
pod | 0 | 2 | 0.0 |
total | 11 | 14 | 78.5 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package OpenID::Lite::Role::ErrorHandler; | ||||||
2 | |||||||
3 | 5 | 5 | 2921 | use Any::Moose '::Role'; | |||
5 | 11 | ||||||
5 | 32 | ||||||
4 | |||||||
5 | has '_errstr' => ( | ||||||
6 | is => 'rw', | ||||||
7 | isa => 'Str', | ||||||
8 | ); | ||||||
9 | |||||||
10 | sub ERROR { | ||||||
11 | 4 | 4 | 0 | 8 | my ( $self, $msg ) = @_; | ||
12 | 4 | 50 | 32 | $self->_errstr( $msg || '' ); | |||
13 | 4 | 69 | return; | ||||
14 | } | ||||||
15 | |||||||
16 | sub errstr { | ||||||
17 | 14 | 14 | 0 | 107 | shift->_errstr; | ||
18 | } | ||||||
19 | |||||||
20 | 1; | ||||||
21 |