blib/lib/Class/Property/RO.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 14 | 14 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | n/a | ||
total | 19 | 19 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Class::Property::RO; | ||||||
2 | 1 | 1 | 350 | use strict; use warnings FATAL => 'all'; | |||
1 | 1 | 1 | |||||
1 | 30 | ||||||
1 | 4 | ||||||
1 | 1 | ||||||
1 | 27 | ||||||
3 | 1 | 1 | 3 | use parent 'Class::Property::RW'; | |||
1 | 2 | ||||||
1 | 3 | ||||||
4 | 1 | 1 | 51 | use Carp; | |||
1 | 2 | ||||||
1 | 89 | ||||||
5 | |||||||
6 | sub STORE | ||||||
7 | { | ||||||
8 | 5 | 5 | 9 | my( $self, $value ) = @_; | |||
9 | 5 | 766 | croak sprintf( | ||||
10 | 'Unable to set read-only property %s' | ||||||
11 | , $self->{'field'} | ||||||
12 | ); | ||||||
13 | } | ||||||
14 | |||||||
15 | 1; |