File Coverage

blib/lib/Parse/SAMGov/Mo.pm
Criterion Covered Total %
statement 127 199 63.8
branch 45 48 93.7
condition 6 17 35.2
subroutine 41 41 100.0
pod n/a
total 219 305 71.8


line stmt bran cond sub pod time code
1             package Parse::SAMGov::Mo;
2             $Parse::SAMGov::Mo::VERSION = '0.104';
3             #use Mo qw'build builder default import coerce is chain';
4             # The following line of code was produced from the previous line by
5             # Mo::Inline version 0.40
6 4 100 33 4   14 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.'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->(@_)}}};*{$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->(@_)}}};my$i=\&import;*{$M.import}=sub{(@_==2 and not$_[1])?pop@_:@_==1?push@_,grep!/import/,@f:();goto&$i};*{$M.'coerce::e'}=sub{my($P,$e,$o)=@_;$o->{coerce}=sub{my($m,$n,%a)=@_;$a{coerce}or return$m;sub{$#_?$m->($_[0],$a{coerce}->($_[1])):$m->(@_)}};my$C=$e->{new}||*{$M.Object::new}{CODE};$e->{new}=sub{my$s=$C->(@_);$s->$_($s->{$_})for keys%$s;$s}};*{$M.'is::e'}=sub{my($P,$e,$o)=@_;$o->{is}=sub{my($m,$n,%a)=@_;$a{is}or return$m;sub{$#_&&$a{is}eq'ro'&&caller ne'Mo::coerce'?die$n.' is ro':$m->(@_)}}};*{$M.'chain::e'}=sub{my($P,$e,$o)=@_;$o->{chain}=sub{my($m,$n,%a)=@_;$a{chain}or return$m;sub{$#_?($m->(@_),return$_[0]):$m->(@_)}}};@f=qw[build builder default import coerce is chain];use strict;use warnings;
  4 100 33 4   4  
  4 100 50 4   3621  
  4 100 33 4   17  
  4 100 33 4   4  
  4 100 33 4   62  
  4 100   4   11  
  4 100   4   4  
  4 100   4   122  
  4 50   4   666  
  0 100   4   0  
  0 100   4   0  
  4 50   4   506  
  0 100   4   0  
  0 100   4   0  
  4 100   4   494  
  0 100   4   0  
  0 100   4   0  
  4 100   4   487  
  0 100   4   0  
  0 100   4   0  
  4 100   3   579  
  0 50   2   0  
  0 100   2   0  
  4     2   486  
  0     2   0  
  0     2   0  
  4     2   555  
  0     2   0  
  0     2   0  
  4     2   558  
  0     2   0  
  0     2   0  
  4     2   490  
  0     2   0  
  0     2   0  
  4     2   559  
  0     2   0  
  0     2   0  
  4     2   588  
  0     4153   0  
  0         0  
  4         588  
  0         0  
  0         0  
  4         618  
  0         0  
  0         0  
  4         561  
  0         0  
  0         0  
  4         514  
  0         0  
  0         0  
  4         507  
  0         0  
  0         0  
  4         488  
  0         0  
  0         0  
  4         486  
  0         0  
  0         0  
  3         34  
  3         6  
  3         27  
  2         272  
  0         0  
  0         0  
  2         247  
  0         0  
  0         0  
  2         252  
  0         0  
  0         0  
  2         267  
  0         0  
  0         0  
  2         251  
  0         0  
  0         0  
  2         242  
  0         0  
  0         0  
  2         250  
  0         0  
  0         0  
  2         260  
  0         0  
  0         0  
  2         243  
  0         0  
  0         0  
  2         252  
  0         0  
  0         0  
  2         277  
  0         0  
  0         0  
  2         238  
  0         0  
  0         0  
  2         263  
  0         0  
  0         0  
  2         249  
  0         0  
  0         0  
  2         246  
  0         0  
  0         0  
  2         245  
  0         0  
  0         0  
  2         274  
  0         0  
  0         0  
  2         264  
  0         0  
  0         0  
  4153         836130  
  2         48  
  2         17  
  26         1177  
  404         9093  
  727         4795  
  44         979  
  44         431  
  92         103  
  138         471  
  177         205  
  177         347  
  72         184  
  72         86  
  55         214  
  26         25  
  26         46  
  43         44  
  26         60  
  46         95  
  126         230  
  177         606  
  161         497  
  135         344  
  135         162  
  86         79  
  209         304  
  178         270  
  180         461  
  88         111  
  88         319  
  138         129  
  140         547  
  169         256  
  157         414  
  83         75  
  84         279  
  13         73  
  13         167  
  65         79  
  65         167  
  77         60  
  82         142  
  16         43  
  10         31  
  35         266  
  152         856  
  128         536  
  135         604  
  13         159  
  65         483  
  188         1608  
  143         251  
  259         456  
  258         368  
  141         227  
  337         832  
  323         559  
  128         560  
  128         140  
  26         32  
  30         309  
  100         96  
  82         153  
  25         66  
  12         321  
  160         475  
  237         399  
  83         141  
  28         41  
  34         93  
  37         47  
  108         301  
  83         188  
  18         177  
  43         56  
  43         648  
  15         25  
  15         487  
7              
8             1;
9              
10             =pod
11              
12             =encoding UTF-8
13              
14             =head1 NAME
15              
16             Parse::SAMGov::Mo
17              
18             =head1 VERSION
19              
20             version 0.104
21              
22             =head1 AUTHOR
23              
24             Vikas N Kumar
25              
26             =head1 COPYRIGHT AND LICENSE
27              
28             This software is copyright (c) 2016 by Selective Intellect LLC.
29              
30             This is free software; you can redistribute it and/or modify it under
31             the same terms as the Perl 5 programming language system itself.
32              
33             =cut
34              
35             __END__