blib/lib/Mo/builder.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | 10 | 10 | 100.0 |
condition | 1 | 2 | 50.0 |
subroutine | 5 | 5 | 100.0 |
pod | n/a | ||
total | 27 | 28 | 96.4 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mo::builder;my$M="Mo::"; | ||||||
2 | $VERSION=0.38; | ||||||
3 | 14 | 100 | 50 | 14 | 38 | *{$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->(@_)}}}; | |
14 | 100 | 10 | 239 | ||||
15 | 100 | 4 | 46 | ||||
15 | 100 | 3 | 60 | ||||
13 | 100 | 3 | 39 | ||||
5 | 28 | ||||||
10 | 26 | ||||||
7 | 135 | ||||||
8 | 55 | ||||||
6 | 44 | ||||||
4 | 1659 |