Property/WO.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/CustomGet.pm ↑ Summary
1 package Class::Property::WO;
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 FETCH
7 4 ▶{
Subroutine FETCH: called CC=1 SCAR=0.0
8 4 my( $self ) = @_;
9 croak sprintf(
10 'Unable to read write-only property %s'
11 4 , $self->{'field'}
12 );
13 }
14
15 1 1;
« Property/RW/CustomGet.pm ↑ Summary