File Coverage

/tmp/sll_90CvRH
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 Foo;
2 2     2   5031602 use Mite::Shim;
  2         5  
  2         25  
3              
4             # For lexical environment test
5 2     2   170 use strict;
  2         4  
  2         35  
6 2     2   8 use warnings;
  2         3  
  2         80  
7 2     2   13 use feature ':5.10';
  2         4  
  2         725  
8              
9             has number =>
10             is => 'rw',
11             default => sub { 23 };
12              
13             has list =>
14             is => 'rw',
15             default => sub { [] };
16              
17             my $thing = { foo => 99 };
18             has closure =>
19             is => 'rw',
20             default => sub { $thing };
21              
22             has counter =>
23             is => 'rw',
24             default => sub {
25             state $counter = 0;
26             $counter++;
27             return $counter;
28             };
29              
30             1;