blib/lib/Class/Property/WO.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | n/a | ||
total | 20 | 20 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Class::Property::WO; | ||||||
2 | 1 | 1 | 374 | use strict; use warnings FATAL => 'all'; | |||
1 | 1 | 1 | |||||
1 | 37 | ||||||
1 | 6 | ||||||
1 | 2 | ||||||
1 | 159 | ||||||
3 | 1 | 1 | 6 | use parent 'Class::Property::RW'; | |||
1 | 1 | ||||||
1 | 4 | ||||||
4 | 1 | 1 | 53 | use Carp; | |||
1 | 1 | ||||||
1 | 158 | ||||||
5 | |||||||
6 | sub FETCH | ||||||
7 | { | ||||||
8 | 3 | 3 | 7 | my( $self ) = @_; | |||
9 | 3 | 464 | croak sprintf( | ||||
10 | 'Unable to read write-only property %s' | ||||||
11 | 3 | 5 | , ${$self}->{'field'} | ||||
12 | ); | ||||||
13 | } | ||||||
14 | |||||||
15 | 1; |