File Coverage

blib/lib/Mo/option.pm
Criterion Covered Total %
statement 11 11 100.0
branch 3 4 75.0
condition n/a
subroutine 4 4 100.0
pod n/a
total 18 19 94.7


line stmt bran cond sub pod time code
1             package Mo::option;my$M="Mo::";
2             $VERSION=0.38;
3 2 100   2   11 *{$M.'option::e'}=sub{my($P,$e,$o)=@_;$o->{option}=sub{my($m,$n,%a)=@_;$a{option}or return$m;my$n2=$n;*{$P."read_$n2"}=sub{$_[0]->{$n2}};sub{$#_?$m->(@_):$m->(@_,1);$_[0]}}};
  2 50   1   6  
  2     2   7  
  2     4   6  
  2         3  
  2         15  
  2         10  
  4         26  
  2         10  
  1         5  
  1         16