File Coverage

/tmp/e4z41t7fRm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package MyTest;
2 5     5   20036387 use Mite::Shim;
  5         23  
  5         61  
3             has attr =>
4             is => 'rw',
5             trigger => 1,
6             default => 'default';
7             has log =>
8             is => 'ro',
9             default => sub { [] },
10             lazy => 1;
11             sub _trigger_attr {
12 20     20   36 my $self = shift;
13 20         20 push @{ $self->log }, [ @_ ];
  20         32  
14             }
15             1;