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 33 1   1  
  1 100 0 1   729  
  1 100 0 1   5  
  1 50   1   2  
  1 50   1   279  
  1 100   1   5  
  1 100   1   2  
  1 100   1   27  
  1 100   1   3  
  1 50   1   2  
  1 50   1   44  
  1 0   1   174  
  0 50   1   0  
  0 0   1   0  
  1 0   1   168  
  0 0   1   0  
  0 0   1   0  
  1     1   168  
  0     1   0  
  0     1   0  
  1     1   152  
  0     1   0  
  0     1   0  
  1     1   202  
  0     1   0  
  0     1   0  
  1     1   132  
  0     1   0  
  0     1   0  
  1     1   152  
  0     1   0  
  0     1   0  
  1     1   129  
  0     1   0  
  0     1   0  
  1     1   137  
  0     1   0  
  0     1   0  
  1     1   134  
  0     1   0  
  0     1   0  
  1     1   132  
  0     1   0  
  0     1   0  
  1     1   127  
  0     1   0  
  0     1   0  
  1     1   155  
  0     1   0  
  0     1   0  
  1     1   175  
  0     1   0  
  0     1   0  
  1     1   166  
  0     1   0  
  0     1   0  
  1     1   128  
  0     1   0  
  0     1   0  
  1     1   146  
  0     1   0  
  0     1   0  
  1     1   134  
  0     1   0  
  0     1   0  
  1     1   134  
  0     1   0  
  0     1   0  
  1     1   130  
  0     1   0  
  0     1   0  
  1     1   134  
  0     1   0  
  0     1   0  
  1     1   127  
  0     1   0  
  0     1   0  
  1     1   147  
  0     1   0  
  0     1   0  
  1     1   136  
  0     1   0  
  0     1   0  
  1     1   147  
  0     1   0  
  0     1   0  
  1     1   140  
  0     1   0  
  0     1   0  
  1     1   129  
  0     1   0  
  0     1   0  
  1     1   120  
  0     1   0  
  0     1   0  
  1     1   129  
  0     1   0  
  0     1   0  
  1     1   130  
  0     1   0  
  0     1   0  
  1     1   143  
  0     1   0  
  0     1   0  
  1     1   127  
  0     1   0  
  0     1   0  
  1     1   153  
  0     1   0  
  0     1   0  
  1     1   142  
  0     1   0  
  0     1   0  
  1     1   134  
  0     1   0  
  0     1   0  
  1     1   131  
  0     1   0  
  0     1   0  
  1     1   136  
  0     1   0  
  0     1   0  
  1     1   129  
  0     1   0  
  0     0   0  
  1         129  
  0         0  
  0         0  
  1         127  
  0         0  
  0         0  
  1         136  
  0         0  
  0         0  
  1         160  
  0         0  
  0         0  
  1         132  
  0         0  
  0         0  
  1         128  
  0         0  
  0         0  
  1         130  
  0         0  
  0         0  
  1         136  
  0         0  
  0         0  
  1         131  
  0         0  
  0         0  
  1         130  
  0         0  
  0         0  
  1         130  
  0         0  
  0         0  
  1         173  
  0         0  
  0         0  
  1         202  
  0         0  
  0         0  
  1         131  
  0         0  
  0         0  
  1         147  
  0         0  
  0         0  
  1         136  
  0         0  
  0         0  
  1         121  
  0         0  
  0         0  
  1         129  
  0         0  
  0         0  
  1         124  
  0         0  
  0         0  
  1         155  
  0         0  
  0         0  
  1         138  
  0         0  
  0         0  
  1         150  
  0         0  
  0         0  
  1         151  
  0         0  
  0         0  
  1         123  
  0         0  
  0         0  
  1         131  
  0         0  
  0         0  
  1         147  
  0         0  
  0         0  
  1         139  
  0         0  
  0         0  
  1         172  
  0         0  
  0         0  
  1         164  
  0         0  
  0         0  
  1         137  
  0         0  
  0         0  
  1         136  
  0         0  
  0         0  
  1         138  
  0         0  
  0         0  
  1         133  
  0         0  
  0         0  
  1         127  
  0         0  
  0         0  
  1         136  
  0         0  
  0         0  
  1         133  
  0         0  
  0         0  
  1         134  
  0         0  
  0         0  
  1         127  
  0         0  
  0         0  
  1         163  
  0         0  
  0         0  
  1         133  
  0         0  
  0         0  
  1         129  
  0         0  
  0         0  
  1         134  
  0         0  
  0         0  
  1         189  
  0         0  
  0         0  
  1         140  
  0         0  
  0         0  
  1         133  
  0         0  
  0         0  
  1         152  
  0         0  
  0         0  
  1         131  
  0         0  
  0         0  
  1         128  
  0         0  
  0         0  
  1         133  
  0         0  
  0         0  
  1         5  
  1         1  
  1         7  
  1         143  
  0         0  
  0         0  
  1         148  
  0         0  
  0         0  
  1         132  
  0         0  
  0         0  
  1         128  
  0         0  
  0         0  
  1         138  
  0         0  
  0         0  
  1         137  
  0         0  
  0         0  
  1         170  
  0         0  
  0         0  
  1         128  
  0         0  
  0         0  
  1         4  
  1         1  
  1         7  
  1         138  
  0         0  
  0         0  
  1         131  
  0         0  
  0         0  
  1         140  
  0         0  
  0         0  
  1         132  
  0         0  
  0         0  
  1         5  
  1         2  
  1         13  
  1         249  
  1         2  
  1         8  
  1         138  
  0         0  
  0         0  
  1         133  
  0         0  
  0         0  
  1         145  
  0         0  
  0         0  
  1         140  
  0         0  
  0         0  
  1         145  
  0         0  
  0         0  
  1         133  
  0         0  
  0         0  
  1         128  
  0         0  
  0         0  
  1         128  
  0         0  
  0         0  
  1         179  
  0         0  
  0         0  
  1         142  
  0         0  
  0         0  
  1         124  
  0         0  
  0         0  
  1         128  
  0         0  
  0         0  
  1         133  
  0         0  
  0         0  
  1         133  
  0         0  
  0         0  
  1         164  
  0         0  
  0         0  
  1         131  
  0         0  
  0         0  
  1         123  
  0         0  
  0         0  
  1         131  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  45         56  
  45         81  
  736         2780  
  45         135  
  45         151  
  45         47  
  45         174  
  225         565  
  100         2906  
  100         101  
  100         267  
  100         81  
  100         77  
  272         718  
  272         462  
  100         489  
  100         285  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  13         555  
  13         25  
  13         166  
  27         234  
  27         69  
  27         39  
  27         1270  
  45         51  
  45         89  
  13         18  
  13         61  
  2         8  
  3         11  
  1         4  
  13         18  
  13         43  
  13         21  
  0         0  
  13         57  
  100         83  
  100         228  
  100         96  
  100         259  
  100         103  
  0         0  
  100         128  
  45         90  
  45         137  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  27         34  
  27         94  
  27         71  
  27         69  
  27         118  
  27         32  
  27         1231  
  27         37  
  27         1190  
7              
8             our $DumpModule = 'YAML';
9              
10             1;