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; | ||||||
2 | $Mo::builder::VERSION = '0.40';my$M="Mo::"; | ||||||
3 | $VERSION='0.40'; | ||||||
4 | 9 | 100 | 50 | 9 | 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->(@_)}}}; | |
9 | 100 | 10 | 155 | ||||
19 | 100 | 3 | 47 | ||||
19 | 100 | 3 | 63 | ||||
13 | 100 | 7 | 21 | ||||
7 | 27 | ||||||
12 | 18 | ||||||
5 | 44 | ||||||
7 | 35 | ||||||
8 | 43 | ||||||
5 | 678 |