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.39; | ||||||
3 | 1 | 100 | 50 | 1 | 820 | *{$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 | 6918 | ||||
1 | 66 | 1 | 7 | ||||
1 | 6501 | ||||||
2 | 12101 | ||||||
2 | 6 | ||||||
2 | 4 | ||||||
2 | 21 | ||||||
2 | 24 | ||||||
2 | 12 | ||||||
1 | 249 | ||||||
1 | 13 | ||||||
1 | 5 | ||||||
1 | 4 | ||||||
1 | 8 | ||||||
1 | 8 | ||||||
1 | 8143 |