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 126 126 100.0
pod n/a
total 343 618 55.5


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   2080 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   3  
  1 100 33 1   2961  
  1 100 0 1   10  
  1 0   1   3  
  1 100   1   1646  
  1 100   1   10  
  1 100   1   2  
  1 100   1   41  
  1 50   1   14  
  1 50   1   2  
  1 50   1   78  
  1 50   1   1806  
  0 50   1   0  
  0 0   1   0  
  1 0   1   427  
  0 0   1   0  
  0 0   1   0  
  1     1   1075  
  0     1   0  
  0     1   0  
  1     1   1052  
  0     1   0  
  0     1   0  
  1     1   706  
  0     1   0  
  0     1   0  
  1     1   599  
  0     1   0  
  0     1   0  
  1     1   1670  
  0     1   0  
  0     1   0  
  1     1   648  
  0     1   0  
  0     1   0  
  1     1   2529  
  0     1   0  
  0     1   0  
  1     1   735  
  0     1   0  
  0     1   0  
  1     1   501  
  0     1   0  
  0     1   0  
  1     1   490  
  0     1   0  
  0     1   0  
  1     1   1499  
  0     1   0  
  0     1   0  
  1     1   913  
  0     1   0  
  0     1   0  
  1     1   2491  
  0     1   0  
  0     1   0  
  1     1   4374  
  0     1   0  
  0     1   0  
  1     1   2284  
  0     1   0  
  0     1   0  
  1     1   2482  
  0     1   0  
  0     1   0  
  1     1   533  
  0     1   0  
  0     1   0  
  1     1   676  
  0     1   0  
  0     1   0  
  1     1   3358  
  0     1   0  
  0     1   0  
  1     1   1582  
  0     1   0  
  0     1   0  
  1     1   692  
  0     1   0  
  0     1   0  
  1     1   710  
  0     1   0  
  0     1   0  
  1     1   719  
  0     1   0  
  0     1   0  
  1     1   467  
  0     1   0  
  0     1   0  
  1     1   767  
  0     1   0  
  0     1   0  
  1     1   1756  
  0     1   0  
  0     1   0  
  1     1   604  
  0     1   0  
  0     1   0  
  1     1   392  
  0     1   0  
  0     1   0  
  1     1   860  
  0     1   0  
  0     1   0  
  1     1   639  
  0     1   0  
  0     1   0  
  1     1   687  
  0     1   0  
  0     1   0  
  1     1   477  
  0     1   0  
  0     1   0  
  1     1   409  
  0     1   0  
  0     1   0  
  1     1   431  
  0     1   0  
  0     1   0  
  1     1   511  
  0     1   0  
  0     1   0  
  1     1   325  
  0     1   0  
  0     13   0  
  1         570  
  0         0  
  0         0  
  1         1259  
  0         0  
  0         0  
  1         347  
  0         0  
  0         0  
  1         613  
  0         0  
  0         0  
  1         703  
  0         0  
  0         0  
  1         312  
  0         0  
  0         0  
  1         478  
  0         0  
  0         0  
  1         460  
  0         0  
  0         0  
  1         492  
  0         0  
  0         0  
  1         354  
  0         0  
  0         0  
  1         354  
  0         0  
  0         0  
  1         403  
  0         0  
  0         0  
  1         488  
  0         0  
  0         0  
  1         363  
  0         0  
  0         0  
  1         436  
  0         0  
  0         0  
  1         314  
  0         0  
  0         0  
  1         322  
  0         0  
  0         0  
  1         907  
  0         0  
  0         0  
  1         2703  
  0         0  
  0         0  
  1         539  
  0         0  
  0         0  
  1         326  
  0         0  
  0         0  
  1         331  
  0         0  
  0         0  
  1         308  
  0         0  
  0         0  
  1         397  
  0         0  
  0         0  
  1         386  
  0         0  
  0         0  
  1         327  
  0         0  
  0         0  
  1         387  
  0         0  
  0         0  
  1         429  
  0         0  
  0         0  
  1         429  
  0         0  
  0         0  
  1         455  
  0         0  
  0         0  
  1         614  
  0         0  
  0         0  
  1         360  
  0         0  
  0         0  
  1         435  
  0         0  
  0         0  
  1         382  
  0         0  
  0         0  
  1         342  
  0         0  
  0         0  
  1         741  
  0         0  
  0         0  
  1         331  
  0         0  
  0         0  
  1         439  
  0         0  
  0         0  
  1         304  
  0         0  
  0         0  
  1         419  
  0         0  
  0         0  
  1         416  
  0         0  
  0         0  
  1         407  
  0         0  
  0         0  
  1         449  
  0         0  
  0         0  
  1         381  
  0         0  
  0         0  
  1         2228  
  0         0  
  0         0  
  1         378  
  0         0  
  0         0  
  1         622  
  0         0  
  0         0  
  1         302  
  0         0  
  0         0  
  1         608  
  0         0  
  0         0  
  1         452  
  0         0  
  0         0  
  1         448  
  0         0  
  0         0  
  1         456  
  0         0  
  0         0  
  1         373  
  0         0  
  0         0  
  1         7  
  1         3  
  1         10  
  1         346  
  0         0  
  0         0  
  1         311  
  0         0  
  0         0  
  1         374  
  0         0  
  0         0  
  1         361  
  0         0  
  0         0  
  1         421  
  0         0  
  0         0  
  1         363  
  0         0  
  0         0  
  1         415  
  0         0  
  0         0  
  1         342  
  0         0  
  0         0  
  1         6  
  1         2  
  1         7  
  1         347  
  0         0  
  0         0  
  1         329  
  0         0  
  0         0  
  1         277  
  0         0  
  0         0  
  1         432  
  0         0  
  0         0  
  1         8  
  1         2  
  1         9  
  1         504  
  1         2  
  1         10  
  1         483  
  0         0  
  0         0  
  1         428  
  0         0  
  0         0  
  1         397  
  0         0  
  0         0  
  1         404  
  0         0  
  0         0  
  1         480  
  0         0  
  0         0  
  1         459  
  0         0  
  0         0  
  1         340  
  0         0  
  0         0  
  1         379  
  0         0  
  0         0  
  1         342  
  0         0  
  0         0  
  1         331  
  0         0  
  0         0  
  1         452  
  0         0  
  0         0  
  1         390  
  0         0  
  0         0  
  1         333  
  0         0  
  0         0  
  1         387  
  0         0  
  0         0  
  13         698  
  13         33  
  13         445  
  3992         25236  
  1359         6653  
  0         0  
  0         0  
  0         0  
  395         997  
  395         744  
  395         2687  
  395         563  
  395         648  
  1097         5563  
  1097         3750  
  395         5953  
  395         20296  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  45         76  
  45         207  
  45         214  
  45         236  
  45         57  
  45         387  
  27         66  
  27         166  
  27         119  
  27         112  
  27         762  
  395         615  
  395         2285  
  395         727  
  395         2193  
  395         833  
  0         0  
  395         913  
  27         62  
  27         2077  
  45         73  
  45         227  
  13         22  
  13         68  
  2         12  
  3         18  
  1         9  
  13         29  
  13         61  
  13         26  
  0         0  
  13         78  
  27         54  
  27         5943  
  27         347  
  27         111  
  27         57  
  27         2188  
  45         80  
  45         269  
  0            
  0            
  0            
  0            
  0            
  0            
  0            
7              
8             our $DumpModule = 'YAML';
9              
10             1;