example/lib/Module/ImmutableMooseClass.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 16 | 16 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Module::ImmutableMooseClass; | ||||||
2 | 1 | 1 | 381 | use strict; | |||
1 | 2 | ||||||
1 | 31 | ||||||
3 | 1 | 1 | 11 | use warnings FATAL => 'all'; | |||
1 | 4 | ||||||
1 | 35 | ||||||
4 | |||||||
5 | 1 | 1 | 623 | use Moose; | |||
1 | 472393 | ||||||
1 | 6 | ||||||
6 | |||||||
7 | has counter => ( | ||||||
8 | is => 'ro', | ||||||
9 | isa => 'Int', | ||||||
10 | default => 1, | ||||||
11 | ); | ||||||
12 | |||||||
13 | 1 | 1 | 7452 | no Moose; | |||
1 | 2 | ||||||
1 | 5 | ||||||
14 | __PACKAGE__->meta->make_immutable; | ||||||
15 | |||||||
16 | 1; |