blib/lib/Mo/Mouse.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 18 | 18 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | 4 | 7 | 57.1 |
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 27 | 30 | 90.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mo::Mouse;$M="Mo::"; | ||||||
2 | $VERSION=0.39; | ||||||
3 | 1 | 100 | 50 | 1 | 13838 | *{$M.'Mouse::e'}=sub{my($P,$e)=@_;$P=~s/::$//;%$e=(M=>1);require Mouse;require Mouse::Util::MetaRole;Mouse->import({into=>$P});Mouse::Util::MetaRole::apply_metaroles(for=>$P,class_metaroles=>{attribute=>['Attr::Trait']},)};BEGIN{package Attr::Trait;use Mouse::Role;around _process_options=>sub{my$orig=shift;my$c=shift;my($n,$o)=@_;$o->{is}||='rw';$o->{lazy}||=1 if defined$o->{default}or defined$o->{builder};$c->$orig(@_)};$INC{'Attr/Trait.pm'}=1} | |
1 | 50 | 1 | 1372 | ||||
1 | 66 | 1 | 6 | ||||
1 | 480 | ||||||
2 | 1109 | ||||||
2 | 3 | ||||||
2 | 4 | ||||||
2 | 14 | ||||||
2 | 18 | ||||||
2 | 27 | ||||||
1 | 91 | ||||||
1 | 14 | ||||||
1 | 6 | ||||||
1 | 3 | ||||||
1 | 7 | ||||||
1 | 1031 | ||||||
1 | 1374 | ||||||
1 | 286 |