blib/lib/Mo/Moose.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 17 | 17 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | 4 | 7 | 57.1 |
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 26 | 29 | 89.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mo::Moose;$M="Mo::"; | ||||||
2 | $VERSION=0.38; | ||||||
3 | 1 | 100 | 50 | 1 | 1926 | *{$M.'Moose::e'}=sub{my($P,$e)=@_;$P=~s/::$//;%$e=(M=>1);require Moose;Moose->import({into=>$P});Moose::Util::MetaRole::apply_metaroles(for=>$P,class_metaroles=>{attribute=>['Attr::Trait']},)};BEGIN{package Attr::Trait;use Moose::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 | 7413 | ||||
1 | 66 | 1 | 7 | ||||
1 | 10959 | ||||||
2 | 5449 | ||||||
2 | 4 | ||||||
2 | 5 | ||||||
2 | 19 | ||||||
2 | 20 | ||||||
2 | 10 | ||||||
1 | 479 | ||||||
1 | 17 | ||||||
1 | 8 | ||||||
1 | 4 | ||||||
1 | 10 | ||||||
1 | 10 | ||||||
1 | 11328 |