Property/RO.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Property/RW.pm ↑ Summary Property/RW/Custom.pm »
1 package Class::Property::RO;
2 1 ▶use strict; use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use parent 'Class::Property::RW';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5
6 sub STORE
7 5 ▶{
Subroutine STORE: called CC=1 SCAR=0.0
8 5 my( $self, $value ) = @_;
9 croak sprintf(
10 'Unable to set read-only property %s'
11 5 , $self->{'field'}
12 );
13 }
14
15 1 1;
« Property/RW.pm ↑ Summary Property/RW/Custom.pm »