blib/lib/Mo/builder.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | 10 | 10 | 100.0 |
condition | 1 | 2 | 50.0 |
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 26 | 27 | 96.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mo::builder;my$M="Mo::"; | ||||||
2 | $VERSION=0.39; | ||||||
3 | 13 | 100 | 50 | 13 | 34 | *{$M.'builder::e'}=sub{my($P,$e,$o)=@_;$o->{builder}=sub{my($m,$n,%a)=@_;my$b=$a{builder}or return$m;my$i=exists$a{lazy}?$a{lazy}:!${$P.':N'};$i or ${$P.':E'}{$n}=\&{$P.$b}and return$m;sub{$#_?$m->(@_):!exists$_[0]{$n}?$_[0]{$n}=$_[0]->$b:$m->(@_)}}}; | |
13 | 100 | 9 | 236 | ||||
16 | 100 | 3 | 50 | ||||
16 | 100 | 7 | 65 | ||||
13 | 100 | 37 | |||||
5 | 25 | ||||||
10 | 27 | ||||||
7 | 65 | ||||||
6 | 48 | ||||||
6 | 43 | ||||||
6 | 930 |