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 0 1   6 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 100 1   2  
  1 100 0 1   1188  
  1 100 33 1   7  
  1 100   1   1  
  1 50   1   440  
  1 50   1   11  
  1 100   1   3  
  1 100   1   44  
  1 100   1   5  
  1 0   1   3  
  1 50   1   72  
  1 0   1   380  
  0 0   1   0  
  0 0   1   0  
  1 0   1   344  
  0 50   1   0  
  0 50   1   0  
  1     1   342  
  0     1   0  
  0     1   0  
  1     1   423  
  0     1   0  
  0     1   0  
  1     1   424  
  0     1   0  
  0     1   0  
  1     1   614  
  0     1   0  
  0     1   0  
  1     1   417  
  0     1   0  
  0     1   0  
  1     1   382  
  0     1   0  
  0     1   0  
  1     1   386  
  0     1   0  
  0     1   0  
  1     1   350  
  0     1   0  
  0     1   0  
  1     1   349  
  0     1   0  
  0     1   0  
  1     1   363  
  0     1   0  
  0     1   0  
  1     1   430  
  0     1   0  
  0     1   0  
  1     1   401  
  0     1   0  
  0     1   0  
  1     1   348  
  0     1   0  
  0     1   0  
  1     1   358  
  0     1   0  
  0     1   0  
  1     1   12440  
  0     1   0  
  0     1   0  
  1     1   454  
  0     1   0  
  0     1   0  
  1     1   422  
  0     1   0  
  0     1   0  
  1     1   368  
  0     1   0  
  0     1   0  
  1     1   348  
  0     1   0  
  0     1   0  
  1     1   385  
  0     1   0  
  0     1   0  
  1     1   382  
  0     1   0  
  0     1   0  
  1     1   382  
  0     1   0  
  0     1   0  
  1     1   369  
  0     1   0  
  0     1   0  
  1     1   361  
  0     1   0  
  0     1   0  
  1     1   440  
  0     1   0  
  0     1   0  
  1     1   419  
  0     1   0  
  0     1   0  
  1     1   440  
  0     1   0  
  0     1   0  
  1     1   8963  
  0     1   0  
  0     1   0  
  1     1   454  
  0     1   0  
  0     1   0  
  1     1   490  
  0     1   0  
  0     1   0  
  1     1   387  
  0     1   0  
  0     1   0  
  1     1   392  
  0     1   0  
  0     1   0  
  1     1   403  
  0     1   0  
  0     1   0  
  1     1   434  
  0     1   0  
  0     1   0  
  1     1   430  
  0     1   0  
  0     1   0  
  1     1   411  
  0     1   0  
  0     361   0  
  1         401  
  0         0  
  0         0  
  1         533  
  0         0  
  0         0  
  1         366  
  0         0  
  0         0  
  1         382  
  0         0  
  0         0  
  1         376  
  0         0  
  0         0  
  1         375  
  0         0  
  0         0  
  1         371  
  0         0  
  0         0  
  1         390  
  0         0  
  0         0  
  1         401  
  0         0  
  0         0  
  1         408  
  0         0  
  0         0  
  1         437  
  0         0  
  0         0  
  1         391  
  0         0  
  0         0  
  1         380  
  0         0  
  0         0  
  1         408  
  0         0  
  0         0  
  1         364  
  0         0  
  0         0  
  1         374  
  0         0  
  0         0  
  1         350  
  0         0  
  0         0  
  1         427  
  0         0  
  0         0  
  1         392  
  0         0  
  0         0  
  1         401  
  0         0  
  0         0  
  1         391  
  0         0  
  0         0  
  1         380  
  0         0  
  0         0  
  1         414  
  0         0  
  0         0  
  1         448  
  0         0  
  0         0  
  1         342  
  0         0  
  0         0  
  1         331  
  0         0  
  0         0  
  1         406  
  0         0  
  0         0  
  1         389  
  0         0  
  0         0  
  1         394  
  0         0  
  0         0  
  1         383  
  0         0  
  0         0  
  1         390  
  0         0  
  0         0  
  1         352  
  0         0  
  0         0  
  1         430  
  0         0  
  0         0  
  1         362  
  0         0  
  0         0  
  1         402  
  0         0  
  0         0  
  1         410  
  0         0  
  0         0  
  1         416  
  0         0  
  0         0  
  1         3749  
  0         0  
  0         0  
  1         457  
  0         0  
  0         0  
  1         15242  
  0         0  
  0         0  
  1         477  
  0         0  
  0         0  
  1         373  
  0         0  
  0         0  
  1         434  
  0         0  
  0         0  
  1         416  
  0         0  
  0         0  
  1         388  
  0         0  
  0         0  
  1         431  
  0         0  
  0         0  
  1         381  
  0         0  
  0         0  
  1         350  
  0         0  
  0         0  
  1         347  
  0         0  
  0         0  
  1         699  
  0         0  
  0         0  
  1         496  
  0         0  
  0         0  
  1         452  
  0         0  
  0         0  
  1         401  
  0         0  
  0         0  
  1         5  
  1         3  
  1         9  
  1         548  
  0         0  
  0         0  
  1         337  
  0         0  
  0         0  
  1         419  
  0         0  
  0         0  
  1         438  
  0         0  
  0         0  
  1         557  
  0         0  
  0         0  
  1         432  
  0         0  
  0         0  
  1         420  
  0         0  
  0         0  
  1         426  
  0         0  
  0         0  
  1         7  
  1         2  
  1         10  
  1         694  
  0         0  
  0         0  
  1         405  
  0         0  
  0         0  
  1         510  
  0         0  
  0         0  
  1         400  
  0         0  
  0         0  
  1         7  
  1         1  
  1         10  
  1         719  
  1         3  
  1         10  
  1         485  
  0         0  
  0         0  
  1         393  
  0         0  
  0         0  
  1         400  
  0         0  
  0         0  
  1         399  
  0         0  
  0         0  
  1         729  
  0         0  
  0         0  
  1         372  
  0         0  
  0         0  
  1         565  
  0         0  
  0         0  
  1         351  
  0         0  
  0         0  
  1         611  
  0         0  
  0         0  
  1         451  
  0         0  
  0         0  
  1         518  
  0         0  
  0         0  
  1         650  
  0         0  
  0         0  
  1         392  
  0         0  
  0         0  
  1         398  
  0         0  
  0         0  
  361         2418  
  13         783  
  13         45  
  13         324  
  0         0  
  0         0  
  0         0  
  45         83  
  45         141  
  13         25  
  13         80  
  2         9  
  3         14  
  1         7  
  13         25  
  13         59  
  13         30  
  0         0  
  13         94  
  135         844  
  45         83  
  45         160  
  45         153  
  45         309  
  45         79  
  45         276  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  77         217  
  77         319  
  77         101  
  77         349  
  77         233  
  0         0  
  77         195  
  77         159  
  77         110  
  77         448  
  77         97  
  77         83  
  194         1585  
  194         1061  
  77         570  
  77         1423  
  27         62  
  27         162  
  27         138  
  27         118  
  27         218  
  45         92  
  45         227  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  27         61  
  27         14550  
  27         59  
  27         8982  
  27         64  
  27         7766  
  27         367  
  27         106  
7              
8             our $DumpModule = 'YAML';
9              
10             1;