Exception/InvalidArrayLength.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 68.4% 13 / 19 CC 1 SCAR 2.9
CC
1
Cov
73%
error
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Exception/StructuredParameter.pm ↑ Summary Exception/InvalidArrayPointer.pm »
1 package Catalyst::Exception::InvalidArrayLength;
2  
3 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 extends 'Catalyst::Exception::StructuredParameter';
7  
8 2 has 'pointer' => (is=>'ro', required=>1);
9 2 has 'max' => (is=>'ro', required=>1);
10 2 has 'attempted' => (is=>'ro', required=>1);
11  
12 0 ▶sub error {
Subroutine error: not called CC=1 SCAR=6.9
Pod undocumented
13 0 return "Pointer '@{[ $_[0]->pointer ]}' has array length of '@{[ $_[0]->attempted ]}' but maximum is '@{[ $_[0]->max ]}'.";
14 }
15  
16 2 __PACKAGE__->meta->make_immutable;
« Exception/StructuredParameter.pm ↑ Summary Exception/InvalidArrayPointer.pm »