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   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   1343  
  1 100 0 1   9  
  1 50   1   2  
  1 50   1   401  
  1 0   1   6  
  1 100   1   1  
  1 100   1   30  
  1 100   1   3  
  1 100   1   2  
  1 50   1   52  
  1 50   1   182  
  0 50   1   0  
  0 0   1   0  
  1 0   1   139  
  0 0   1   0  
  0 0   1   0  
  1     1   131  
  0     1   0  
  0     1   0  
  1     1   135  
  0     1   0  
  0     1   0  
  1     1   252  
  0     1   0  
  0     1   0  
  1     1   161  
  0     1   0  
  0     1   0  
  1     1   222  
  0     1   0  
  0     1   0  
  1     1   276  
  0     1   0  
  0     1   0  
  1     1   243  
  0     1   0  
  0     1   0  
  1     1   220  
  0     1   0  
  0     1   0  
  1     1   393  
  0     1   0  
  0     1   0  
  1     1   195  
  0     1   0  
  0     1   0  
  1     1   284  
  0     1   0  
  0     1   0  
  1     1   230  
  0     1   0  
  0     1   0  
  1     1   214  
  0     1   0  
  0     1   0  
  1     1   201  
  0     1   0  
  0     1   0  
  1     1   236  
  0     1   0  
  0     1   0  
  1     1   231  
  0     1   0  
  0     1   0  
  1     1   264  
  0     1   0  
  0     1   0  
  1     1   222  
  0     1   0  
  0     1   0  
  1     1   322  
  0     1   0  
  0     1   0  
  1     1   196  
  0     1   0  
  0     1   0  
  1     1   201  
  0     1   0  
  0     1   0  
  1     1   213  
  0     1   0  
  0     1   0  
  1     1   234  
  0     1   0  
  0     1   0  
  1     1   252  
  0     1   0  
  0     1   0  
  1     1   213  
  0     1   0  
  0     1   0  
  1     1   218  
  0     1   0  
  0     1   0  
  1     1   230  
  0     1   0  
  0     1   0  
  1     1   230  
  0     1   0  
  0     1   0  
  1     1   216  
  0     1   0  
  0     1   0  
  1     1   380  
  0     1   0  
  0     1   0  
  1     1   231  
  0     1   0  
  0     1   0  
  1     1   212  
  0     1   0  
  0     1   0  
  1     1   228  
  0     1   0  
  0     1   0  
  1     1   210  
  0     1   0  
  0     1   0  
  1     1   234  
  0     1   0  
  0     1   0  
  1     1   208  
  0     1   0  
  0     45   0  
  1         166  
  0         0  
  0         0  
  1         230  
  0         0  
  0         0  
  1         224  
  0         0  
  0         0  
  1         230  
  0         0  
  0         0  
  1         218  
  0         0  
  0         0  
  1         226  
  0         0  
  0         0  
  1         198  
  0         0  
  0         0  
  1         198  
  0         0  
  0         0  
  1         221  
  0         0  
  0         0  
  1         231  
  0         0  
  0         0  
  1         221  
  0         0  
  0         0  
  1         234  
  0         0  
  0         0  
  1         229  
  0         0  
  0         0  
  1         274  
  0         0  
  0         0  
  1         228  
  0         0  
  0         0  
  1         235  
  0         0  
  0         0  
  1         221  
  0         0  
  0         0  
  1         214  
  0         0  
  0         0  
  1         279  
  0         0  
  0         0  
  1         226  
  0         0  
  0         0  
  1         214  
  0         0  
  0         0  
  1         214  
  0         0  
  0         0  
  1         251  
  0         0  
  0         0  
  1         228  
  0         0  
  0         0  
  1         226  
  0         0  
  0         0  
  1         453  
  0         0  
  0         0  
  1         241  
  0         0  
  0         0  
  1         218  
  0         0  
  0         0  
  1         196  
  0         0  
  0         0  
  1         228  
  0         0  
  0         0  
  1         288  
  0         0  
  0         0  
  1         360  
  0         0  
  0         0  
  1         206  
  0         0  
  0         0  
  1         215  
  0         0  
  0         0  
  1         226  
  0         0  
  0         0  
  1         228  
  0         0  
  0         0  
  1         286  
  0         0  
  0         0  
  1         233  
  0         0  
  0         0  
  1         232  
  0         0  
  0         0  
  1         218  
  0         0  
  0         0  
  1         288  
  0         0  
  0         0  
  1         227  
  0         0  
  0         0  
  1         256  
  0         0  
  0         0  
  1         224  
  0         0  
  0         0  
  1         364  
  0         0  
  0         0  
  1         220  
  0         0  
  0         0  
  1         217  
  0         0  
  0         0  
  1         251  
  0         0  
  0         0  
  1         190  
  0         0  
  0         0  
  1         244  
  0         0  
  0         0  
  1         160  
  0         0  
  0         0  
  1         136  
  0         0  
  0         0  
  1         173  
  0         0  
  0         0  
  1         6  
  1         2  
  1         7  
  1         209  
  0         0  
  0         0  
  1         217  
  0         0  
  0         0  
  1         197  
  0         0  
  0         0  
  1         192  
  0         0  
  0         0  
  1         242  
  0         0  
  0         0  
  1         195  
  0         0  
  0         0  
  1         202  
  0         0  
  0         0  
  1         204  
  0         0  
  0         0  
  1         6  
  1         3  
  1         10  
  1         242  
  0         0  
  0         0  
  1         198  
  0         0  
  0         0  
  1         199  
  0         0  
  0         0  
  1         215  
  0         0  
  0         0  
  1         7  
  1         2  
  1         10  
  1         350  
  1         3  
  1         14  
  1         251  
  0         0  
  0         0  
  1         210  
  0         0  
  0         0  
  1         212  
  0         0  
  0         0  
  1         195  
  0         0  
  0         0  
  1         259  
  0         0  
  0         0  
  1         216  
  0         0  
  0         0  
  1         206  
  0         0  
  0         0  
  1         223  
  0         0  
  0         0  
  1         163  
  0         0  
  0         0  
  1         143  
  0         0  
  0         0  
  1         148  
  0         0  
  0         0  
  1         212  
  0         0  
  0         0  
  1         231  
  0         0  
  0         0  
  1         213  
  0         0  
  0         0  
  45         72  
  45         158  
  361         1584  
  45         155  
  45         245  
  45         61  
  45         287  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  135         493  
  0         0  
  0         0  
  0         0  
  13         845  
  13         37  
  13         255  
  27         49  
  27         356  
  27         118  
  27         106  
  27         198  
  77         222  
  77         109  
  77         345  
  77         91  
  77         80  
  194         841  
  194         499  
  77         473  
  77         1306  
  27         412  
  27         107  
  77         97  
  77         315  
  77         94  
  77         362  
  77         111  
  0         0  
  77         153  
  45         73  
  45         147  
  13         21  
  13         87  
  2         9  
  3         15  
  1         8  
  13         25  
  13         64  
  13         34  
  0         0  
  13         82  
  27         60  
  27         1959  
  45         91  
  45         203  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  27         54  
  27         1773  
  27         50  
  27         2108  
7              
8             our $DumpModule = 'YAML';
9              
10             1;