File Coverage

inc/TestML/Base.pm
Criterion Covered Total %
statement 193 447 43.1
branch 21 36 58.3
condition 3 9 33.3
subroutine 125 126 99.2
pod n/a
total 342 618 55.3


line stmt bran cond sub pod time code
1             package TestML::Base;
2              
3             # use Mo qw'build default builder xxx import';
4             # The following line of code was produced from the previous line by
5             # Mo::Inline version 0.38
6 1 100 100 1   5 no warnings;my$M=__PACKAGE__.'::';*{$M.Object::new}=sub{my$c=shift;my$s=bless{@_},$c;my%n=%{$c.::.':E'};map{$s->{$_}=$n{$_}->()if!exists$s->{$_}}keys%n;$s};*{$M.import}=sub{import warnings;$^H|=1538;my($P,%e,%o)=caller.'::';shift;eval"no Mo::$_",&{$M.$_.::e}($P,\%e,\%o,\@_)for@_;return if$e{M};%e=(extends,sub{eval"no $_[0]()";@{$P.ISA}=$_[0]},has,sub{my$n=shift;my$m=sub{$#_?$_[0]{$n}=$_[1]:$_[0]{$n}};@_=(default,@_)if!($#_%2);$m=$o{$_}->($m,$n,@_)for sort keys%o;*{$P.$n}=$m},%e,);*{$P.$_}=$e{$_}for keys%e;@{$P.ISA}=$M.Object};*{$M.'build::e'}=sub{my($P,$e)=@_;$e->{new}=sub{$c=shift;my$s=&{$M.Object::new}($c,@_);my@B;do{@B=($c.::BUILD,@B)}while($c)=@{$c.::ISA};exists&$_&&&$_($s)for@B;$s}};*{$M.'default::e'}=sub{my($P,$e,$o)=@_;$o->{default}=sub{my($m,$n,%a)=@_;exists$a{default}or return$m;my($d,$r)=$a{default};my$g='HASH'eq($r=ref$d)?sub{+{%$d}}:'ARRAY'eq$r?sub{[@$d]}:'CODE'eq$r?$d:sub{$d};my$i=exists$a{lazy}?$a{lazy}:!${$P.':N'};$i or ${$P.':E'}{$n}=$g and return$m;sub{$#_?$m->(@_):!exists$_[0]{$n}?$_[0]{$n}=$g->(@_):$m->(@_)}}};*{$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->(@_)}}};use constant XXX_skip=>1;my$dm='YAML::XS';*{$M.'xxx::e'}=sub{my($P,$e)=@_;$e->{WWW}=sub{require XXX;local$XXX::DumpModule=$dm;XXX::WWW(@_)};$e->{XXX}=sub{require XXX;local$XXX::DumpModule=$dm;XXX::XXX(@_)};$e->{YYY}=sub{require XXX;local$XXX::DumpModule=$dm;XXX::YYY(@_)};$e->{ZZZ}=sub{require XXX;local$XXX::DumpModule=$dm}};my$i=\&import;*{$M.import}=sub{(@_==2 and not$_[1])?pop@_:@_==1?push@_,grep!/import/,@f:();goto&$i};@f=qw[build default builder xxx import];use strict;use warnings;
  1 100 0 1   2  
  1 100 0 1   1506  
  1 100 33 1   9  
  1 100   1   1  
  1 100   1   398  
  1 100   1   5  
  1 100   1   1  
  1 50   1   28  
  1 50   1   5  
  1 50   1   2  
  1 0   1   74  
  1 0   1   374  
  0 0   1   0  
  0 0   1   0  
  1 0   1   345  
  0 50   1   0  
  0 50   1   0  
  1     1   339  
  0     1   0  
  0     1   0  
  1     1   353  
  0     1   0  
  0     1   0  
  1     1   393  
  0     1   0  
  0     1   0  
  1     1   480  
  0     1   0  
  0     1   0  
  1     1   411  
  0     1   0  
  0     1   0  
  1     1   366  
  0     1   0  
  0     1   0  
  1     1   350  
  0     1   0  
  0     1   0  
  1     1   389  
  0     1   0  
  0     1   0  
  1     1   365  
  0     1   0  
  0     1   0  
  1     1   426  
  0     1   0  
  0     1   0  
  1     1   373  
  0     1   0  
  0     1   0  
  1     1   568  
  0     1   0  
  0     1   0  
  1     1   349  
  0     1   0  
  0     1   0  
  1     1   818  
  0     1   0  
  0     1   0  
  1     1   518  
  0     1   0  
  0     1   0  
  1     1   454  
  0     1   0  
  0     1   0  
  1     1   404  
  0     1   0  
  0     1   0  
  1     1   412  
  0     1   0  
  0     1   0  
  1     1   343  
  0     1   0  
  0     1   0  
  1     1   381  
  0     1   0  
  0     1   0  
  1     1   440  
  0     1   0  
  0     1   0  
  1     1   375  
  0     1   0  
  0     1   0  
  1     1   563  
  0     1   0  
  0     1   0  
  1     1   370  
  0     1   0  
  0     1   0  
  1     1   391  
  0     1   0  
  0     1   0  
  1     1   385  
  0     1   0  
  0     1   0  
  1     1   424  
  0     1   0  
  0     1   0  
  1     1   355  
  0     1   0  
  0     1   0  
  1     1   357  
  0     1   0  
  0     1   0  
  1     1   265  
  0     1   0  
  0     1   0  
  1     1   258  
  0     1   0  
  0     1   0  
  1     1   261  
  0     1   0  
  0     1   0  
  1     1   249  
  0     1   0  
  0     1   0  
  1     1   251  
  0     1   0  
  0     1   0  
  1     1   305  
  0     1   0  
  0     1   0  
  1     1   373  
  0     1   0  
  0     0   0  
  1         313  
  0         0  
  0         0  
  1         299  
  0         0  
  0         0  
  1         415  
  0         0  
  0         0  
  1         375  
  0         0  
  0         0  
  1         391  
  0         0  
  0         0  
  1         272  
  0         0  
  0         0  
  1         307  
  0         0  
  0         0  
  1         323  
  0         0  
  0         0  
  1         330  
  0         0  
  0         0  
  1         260  
  0         0  
  0         0  
  1         302  
  0         0  
  0         0  
  1         387  
  0         0  
  0         0  
  1         508  
  0         0  
  0         0  
  1         301  
  0         0  
  0         0  
  1         387  
  0         0  
  0         0  
  1         299  
  0         0  
  0         0  
  1         305  
  0         0  
  0         0  
  1         254  
  0         0  
  0         0  
  1         448  
  0         0  
  0         0  
  1         349  
  0         0  
  0         0  
  1         278  
  0         0  
  0         0  
  1         352  
  0         0  
  0         0  
  1         335  
  0         0  
  0         0  
  1         290  
  0         0  
  0         0  
  1         363  
  0         0  
  0         0  
  1         340  
  0         0  
  0         0  
  1         405  
  0         0  
  0         0  
  1         356  
  0         0  
  0         0  
  1         657  
  0         0  
  0         0  
  1         366  
  0         0  
  0         0  
  1         366  
  0         0  
  0         0  
  1         436  
  0         0  
  0         0  
  1         374  
  0         0  
  0         0  
  1         352  
  0         0  
  0         0  
  1         290  
  0         0  
  0         0  
  1         351  
  0         0  
  0         0  
  1         355  
  0         0  
  0         0  
  1         367  
  0         0  
  0         0  
  1         350  
  0         0  
  0         0  
  1         330  
  0         0  
  0         0  
  1         325  
  0         0  
  0         0  
  1         295  
  0         0  
  0         0  
  1         438  
  0         0  
  0         0  
  1         300  
  0         0  
  0         0  
  1         430  
  0         0  
  0         0  
  1         282  
  0         0  
  0         0  
  1         320  
  0         0  
  0         0  
  1         374  
  0         0  
  0         0  
  1         474  
  0         0  
  0         0  
  1         356  
  0         0  
  0         0  
  1         822  
  0         0  
  0         0  
  1         339  
  0         0  
  0         0  
  1         447  
  0         0  
  0         0  
  1         7  
  1         2  
  1         11  
  1         385  
  0         0  
  0         0  
  1         475  
  0         0  
  0         0  
  1         326  
  0         0  
  0         0  
  1         605  
  0         0  
  0         0  
  1         350  
  0         0  
  0         0  
  1         441  
  0         0  
  0         0  
  1         348  
  0         0  
  0         0  
  1         429  
  0         0  
  0         0  
  1         16  
  1         2  
  1         16  
  1         351  
  0         0  
  0         0  
  1         376  
  0         0  
  0         0  
  1         353  
  0         0  
  0         0  
  1         380  
  0         0  
  0         0  
  1         7  
  1         3  
  1         10  
  1         507  
  1         3  
  1         11  
  1         376  
  0         0  
  0         0  
  1         358  
  0         0  
  0         0  
  1         608  
  0         0  
  0         0  
  1         335  
  0         0  
  0         0  
  1         551  
  0         0  
  0         0  
  1         444  
  0         0  
  0         0  
  1         373  
  0         0  
  0         0  
  1         423  
  0         0  
  0         0  
  1         935  
  0         0  
  0         0  
  1         358  
  0         0  
  0         0  
  1         435  
  0         0  
  0         0  
  1         418  
  0         0  
  0         0  
  1         427  
  0         0  
  0         0  
  1         377  
  0         0  
  0         0  
  0         0  
  0         0  
  157         1660  
  38         125  
  38         49  
  38         259  
  38         59  
  38         43  
  95         537  
  95         398  
  38         304  
  38         219  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  45         76  
  45         143  
  45         143  
  45         234  
  45         63  
  45         277  
  63         455  
  13         723  
  13         45  
  13         314  
  27         59  
  27         1824  
  45         84  
  45         147  
  13         24  
  13         79  
  2         12  
  3         15  
  1         6  
  13         27  
  13         51  
  13         30  
  0         0  
  13         75  
  27         51  
  27         211  
  27         121  
  27         111  
  27         166  
  45         162  
  45         230  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  27         57  
  27         2465  
  38         52  
  38         242  
  38         51  
  38         208  
  38         60  
  0         0  
  38         81  
  27         314  
  27         97  
  27         44  
  27         1578  
7              
8             our $DumpModule = 'YAML';
9              
10             1;