File Coverage

inc/TestML/Base.pm
Criterion Covered Total %
statement 208 447 46.5
branch 31 36 86.1
condition 5 11 45.4
subroutine 126 126 100.0
pod n/a
total 370 620 59.6


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 3 100 100 3   15 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;
  3 100 33 3   6  
  3 100 33 3   3274  
  3 100 33 3   19  
  3 50   3   4  
  3 50   3   1105  
  3 50   3   15  
  3 100   3   4  
  3 100   3   99  
  3 100   3   13  
  3 100   3   12  
  3 100   3   162  
  3 100   3   1347  
  0 100   3   0  
  0 100   3   0  
  3 50   3   1006  
  0 100   3   0  
  0 50   3   0  
  3     3   980  
  0     3   0  
  0     3   0  
  3     3   1116  
  0     3   0  
  0     3   0  
  3     3   1147  
  0     3   0  
  0     3   0  
  3     3   1303  
  0     3   0  
  0     3   0  
  3     3   1037  
  0     3   0  
  0     3   0  
  3     3   1089  
  0     3   0  
  0     3   0  
  3     3   1074  
  0     3   0  
  0     3   0  
  3     3   1040  
  0     3   0  
  0     3   0  
  3     3   1097  
  0     3   0  
  0     3   0  
  3     3   1280  
  0     3   0  
  0     3   0  
  3     3   954  
  0     3   0  
  0     3   0  
  3     3   1007  
  0     3   0  
  0     3   0  
  3     3   961  
  0     3   0  
  0     3   0  
  3     3   927  
  0     3   0  
  0     3   0  
  3     3   1020  
  0     3   0  
  0     3   0  
  3     3   907  
  0     3   0  
  0     3   0  
  3     3   1075  
  0     3   0  
  0     3   0  
  3     3   1169  
  0     3   0  
  0     3   0  
  3     3   1694  
  0     3   0  
  0     3   0  
  3     3   1026  
  0     3   0  
  0     3   0  
  3     3   963  
  0     3   0  
  0     3   0  
  3     3   976  
  0     3   0  
  0     3   0  
  3     3   957  
  0     3   0  
  0     3   0  
  3     3   1116  
  0     3   0  
  0     3   0  
  3     3   1448  
  0     3   0  
  0     3   0  
  3     3   1136  
  0     3   0  
  0     3   0  
  3     3   1043  
  0     3   0  
  0     3   0  
  3     3   1068  
  0     3   0  
  0     3   0  
  3     3   1036  
  0     3   0  
  0     3   0  
  3     3   1184  
  0     3   0  
  0     3   0  
  3     3   994  
  0     3   0  
  0     3   0  
  3     3   1057  
  0     3   0  
  0     3   0  
  3     3   965  
  0     3   0  
  0     3   0  
  3     3   924  
  0     3   0  
  0     3   0  
  3     3   1120  
  0     3   0  
  0     3   0  
  3     3   996  
  0     3   0  
  0     1676   0  
  3         968  
  0         0  
  0         0  
  3         1130  
  0         0  
  0         0  
  3         1165  
  0         0  
  0         0  
  3         1081  
  0         0  
  0         0  
  3         1063  
  0         0  
  0         0  
  3         999  
  0         0  
  0         0  
  3         1039  
  0         0  
  0         0  
  3         988  
  0         0  
  0         0  
  3         1054  
  0         0  
  0         0  
  3         1117  
  0         0  
  0         0  
  3         1199  
  0         0  
  0         0  
  3         1109  
  0         0  
  0         0  
  3         1018  
  0         0  
  0         0  
  3         1049  
  0         0  
  0         0  
  3         1098  
  0         0  
  0         0  
  3         1084  
  0         0  
  0         0  
  3         1059  
  0         0  
  0         0  
  3         2239  
  0         0  
  0         0  
  3         1057  
  0         0  
  0         0  
  3         994  
  0         0  
  0         0  
  3         1080  
  0         0  
  0         0  
  3         1387  
  0         0  
  0         0  
  3         1372  
  0         0  
  0         0  
  3         1043  
  0         0  
  0         0  
  3         1054  
  0         0  
  0         0  
  3         1021  
  0         0  
  0         0  
  3         970  
  0         0  
  0         0  
  3         986  
  0         0  
  0         0  
  3         1111  
  0         0  
  0         0  
  3         917  
  0         0  
  0         0  
  3         1063  
  0         0  
  0         0  
  3         1303  
  0         0  
  0         0  
  3         1117  
  0         0  
  0         0  
  3         1033  
  0         0  
  0         0  
  3         1371  
  0         0  
  0         0  
  3         1014  
  0         0  
  0         0  
  3         1082  
  0         0  
  0         0  
  3         1019  
  0         0  
  0         0  
  3         1210  
  0         0  
  0         0  
  3         1229  
  0         0  
  0         0  
  3         1080  
  0         0  
  0         0  
  3         1024  
  0         0  
  0         0  
  3         1009  
  0         0  
  0         0  
  3         990  
  0         0  
  0         0  
  3         1017  
  0         0  
  0         0  
  3         913  
  0         0  
  0         0  
  3         1043  
  0         0  
  0         0  
  3         941  
  0         0  
  0         0  
  3         883  
  0         0  
  0         0  
  3         21  
  3         8  
  3         29  
  3         1183  
  0         0  
  0         0  
  3         1254  
  0         0  
  0         0  
  3         1117  
  0         0  
  0         0  
  3         1075  
  0         0  
  0         0  
  3         996  
  0         0  
  0         0  
  3         934  
  0         0  
  0         0  
  3         971  
  0         0  
  0         0  
  3         1184  
  0         0  
  0         0  
  3         1172  
  3         8  
  3         33  
  3         889  
  0         0  
  0         0  
  3         830  
  0         0  
  0         0  
  3         816  
  0         0  
  0         0  
  3         873  
  0         0  
  0         0  
  3         21  
  3         5  
  3         26  
  3         1068  
  3         7  
  3         27  
  3         925  
  0         0  
  0         0  
  3         865  
  0         0  
  0         0  
  3         886  
  0         0  
  0         0  
  3         842  
  0         0  
  0         0  
  3         919  
  0         0  
  0         0  
  3         845  
  0         0  
  0         0  
  3         935  
  0         0  
  0         0  
  3         895  
  0         0  
  0         0  
  3         998  
  0         0  
  0         0  
  3         898  
  0         0  
  0         0  
  3         4983  
  0         0  
  0         0  
  3         956  
  0         0  
  0         0  
  3         919  
  0         0  
  0         0  
  3         1093  
  0         0  
  0         0  
  3         1115  
  0         0  
  0         0  
  3         1092  
  0         0  
  0         0  
  3         1163  
  0         0  
  0         0  
  3         1022  
  0         0  
  0         0  
  1676         9376  
  458         2736  
  13         32  
  227         1648  
  58         717  
  58         397  
  58         563  
  135         383  
  135         313  
  135         564  
  135         497  
  135         191  
  135         781  
  263         570  
  263         383  
  332         1529  
  332         671  
  263         615  
  643         2982  
  679         2197  
  218         1675  
  218         1162  
  0         0  
  13         863  
  13         47  
  13         307  
  0         0  
  0         0  
  0         0  
  0         0  
  67         261  
  99         199  
  99         2037  
  72         205  
  72         326  
  27         172  
  184         251  
  184         747  
  184         235  
  184         811  
  211         299  
  27         2672  
  238         521  
  81         1681  
  81         441  
  99         261  
  99         2636  
  85         1344  
  103         300  
  92         211  
  61         271  
  59         146  
  15         39  
  61         166  
  41         86  
  40         1615  
  71         230  
  85         240  
  40         1485  
  53         217  
  56         1470  
  57         175  
  55         1530  
  85         196  
  85         411  
  47         78  
  34         128  
  47         143  
  61         223  
  61         1585  
  27         299  
  61         162  
7              
8             our $DumpModule = 'YAML';
9              
10             1;