File Coverage

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;my$M="Mo::";
2             $VERSION=0.38;
3 6 100   6   16 *{$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->(@_)}}};
  6 100   21   22  
  4     21   29  
  21         203  
  2         5  
  2         60