blib/lib/Mo/chain.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | 4 | 4 | 100.0 |
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 13 | 13 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mo::chain; | ||||||
2 | $Mo::chain::VERSION = '0.40';my$M="Mo::"; | ||||||
3 | $VERSION='0.40'; | ||||||
4 | 21 | 100 | 21 | 96 | *{$M.'chain::e'}=sub{my($P,$e,$o)=@_;$o->{chain}=sub{my($m,$n,%a)=@_;$a{chain}or return$m;sub{$#_?($m->(@_),return$_[0]):$m->(@_)}}}; | ||
2 | 100 | 2 | 3 | ||||
2 | 6 | 46 | |||||
6 | 17 | ||||||
6 | 24 | ||||||
4 | 29 |