| 1 | package Async::Redis::Error; | ||||||||||||
| 2 | |||||||||||||
| 3 | 92 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 92 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 92 | ▶ | use 5.018; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | use overload | ||||||||||||
| 8 | 92 | ▶ | '""' => 'stringify', | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | 219 | ▶ | bool => sub { 1 }, | ||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 92 | fallback => 1; | |||||||||||
| 11 | |||||||||||||
| 12 | 119 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 13 | 119 | my ($class, %args) = @_; | |||||||||||
| 14 | 119 | return bless \%args, $class; | |||||||||||
| 15 | } | ||||||||||||
| 16 | |||||||||||||
| 17 | 96 | ▶ | sub message { shift->{message} } | ||||||||||
|
Subroutine
message: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 18 | |||||||||||||
| 19 | 93 | ▶ | sub stringify { | ||||||||||
|
Subroutine
stringify: called CC=2 SCAR=7.2
Pod
undocumented
| |||||||||||||
| 20 | 93 | my ($self) = @_; | |||||||||||
| 21 | 93 | ▶ | return $self->message // ref($self) . ' error'; | ||||||||||
|
Condition50%1/2
$self->message // ref($self) . ' error'
MC/DC0%0/1
$self->message // ref($self) . ' error'
$self->message
Truth table50%1/2
A
A= $self->message
| |||||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 1 | ▶ | sub throw { | ||||||||||
|
Subroutine
throw: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||||
| 25 | 1 | my $self = shift; | |||||||||||
| 26 | 1 | ▶ | $self = $self->new(@_) unless ref $self; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 27 | 1 | die $self; | |||||||||||
| 28 | } | ||||||||||||
| 29 | |||||||||||||
| 30 | 92 | 1; | |||||||||||
| 31 | |||||||||||||
| 32 | __END__ | ||||||||||||