File Coverage

blib/lib/Mo/xs.pm
Criterion Covered Total %
statement 3 5 60.0
branch 1 2 50.0
condition n/a
subroutine 1 2 50.0
pod n/a
total 5 9 55.5


line stmt bran cond sub pod time code
1             package Mo::xs;
2             $Mo::xs::VERSION = '0.40';my$M="Mo::";
3             $VERSION='0.40';
4 1 50   1   3 require Class::XSAccessor;*{$M.'xs::e'}=sub{my($P,$e,$o,$f)=@_;$P=~s/::$//;$e->{has}=sub{my($n,%a)=@_;Class::XSAccessor->import(class=>$P,accessors=>{$n=>$n})}if!grep!/^xs$/,@$f};
  1     0   3  
  1         50  
  0            
  0