| blib/lib/Parse/SAMGov/Mo.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 127 | 199 | 63.8 |
| branch | 42 | 48 | 87.5 |
| condition | 5 | 17 | 29.4 |
| subroutine | 41 | 41 | 100.0 |
| pod | n/a | ||
| total | 215 | 305 | 70.4 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Parse::SAMGov::Mo; | ||||||
| 2 | $Parse::SAMGov::Mo::VERSION = '0.105'; | ||||||
| 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 | 50 | 4 | 5 | |||
| 4 | 100 | 33 | 4 | 3732 | |||
| 4 | 100 | 0 | 4 | 19 | |||
| 4 | 100 | 33 | 4 | 4 | |||
| 4 | 100 | 33 | 4 | 61 | |||
| 4 | 100 | 4 | 13 | ||||
| 4 | 100 | 4 | 4 | ||||
| 4 | 50 | 4 | 128 | ||||
| 4 | 100 | 4 | 704 | ||||
| 0 | 100 | 4 | 0 | ||||
| 0 | 100 | 4 | 0 | ||||
| 4 | 100 | 4 | 518 | ||||
| 0 | 100 | 4 | 0 | ||||
| 0 | 50 | 4 | 0 | ||||
| 4 | 100 | 4 | 494 | ||||
| 0 | 50 | 4 | 0 | ||||
| 0 | 50 | 4 | 0 | ||||
| 4 | 100 | 4 | 531 | ||||
| 0 | 100 | 4 | 0 | ||||
| 0 | 50 | 4 | 0 | ||||
| 4 | 100 | 3 | 494 | ||||
| 0 | 100 | 2 | 0 | ||||
| 0 | 50 | 2 | 0 | ||||
| 4 | 2 | 534 | |||||
| 0 | 2 | 0 | |||||
| 0 | 2 | 0 | |||||
| 4 | 2 | 585 | |||||
| 0 | 2 | 0 | |||||
| 0 | 2 | 0 | |||||
| 4 | 2 | 515 | |||||
| 0 | 2 | 0 | |||||
| 0 | 2 | 0 | |||||
| 4 | 2 | 500 | |||||
| 0 | 2 | 0 | |||||
| 0 | 2 | 0 | |||||
| 4 | 2 | 498 | |||||
| 0 | 2 | 0 | |||||
| 0 | 2 | 0 | |||||
| 4 | 2 | 544 | |||||
| 0 | 61 | 0 | |||||
| 0 | 0 | ||||||
| 4 | 498 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 4 | 525 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 4 | 507 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 4 | 508 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 4 | 532 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 4 | 495 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 4 | 502 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 3 | 55 | ||||||
| 3 | 5 | ||||||
| 3 | 32 | ||||||
| 2 | 344 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 266 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 256 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 251 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 246 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 241 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 252 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 250 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 252 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 245 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 272 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 244 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 273 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 257 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 243 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 249 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 247 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 2 | 287 | ||||||
| 0 | 0 | ||||||
| 0 | 0 | ||||||
| 61 | 1207 | ||||||
| 61 | 176 | ||||||
| 46 | 7878 | ||||||
| 221 | 1655 | ||||||
| 187 | 1052 | ||||||
| 258 | 385 | ||||||
| 4274 | 865035 | ||||||
| 114 | 129 | ||||||
| 114 | 181 | ||||||
| 114 | 238 | ||||||
| 114 | 271 | ||||||
| 114 | 173 | ||||||
| 105 | 348 | ||||||
| 948 | 2256 | ||||||
| 796 | 2039 | ||||||
| 167 | 240 | ||||||
| 100 | 933 | ||||||
| 29 | 676 | ||||||
| 23 | 168 | ||||||
| 19 | 59 | ||||||
| 104 | 2250 | ||||||
| 86 | 407 | ||||||
| 203 | 252 | ||||||
| 255 | 404 | ||||||
| 283 | 531 | ||||||
| 238 | 435 | ||||||
| 135 | 133 | ||||||
| 334 | 1313 | ||||||
| 399 | 680 | ||||||
| 204 | 718 | ||||||
| 139 | 234 | ||||||
| 135 | 243 | ||||||
| 135 | 997 | ||||||
| 182 | 622 | ||||||
| 207 | 484 | ||||||
| 170 | 192 | ||||||
| 26 | 55 | ||||||
| 131 | 180 | ||||||
| 6 | 8 | ||||||
| 12 | 276 | ||||||
| 101 | 382 | ||||||
| 98 | 197 | ||||||
| 21 | 36 | ||||||
| 3 | 7 | ||||||
| 96 | 147 | ||||||
| 83 | 207 | ||||||
| 20 | 201 | ||||||
| 60 | 62 | ||||||
| 59 | 240 | ||||||
| 4 | 6 | ||||||
| 80 | 188 | ||||||
| 160 | 323 | ||||||
| 83 | 179 | ||||||
| 77 | 67 | ||||||
| 154 | 234 | ||||||
| 105 | 166 | ||||||
| 48 | 88 | ||||||
| 26 | 58 | ||||||
| 6 | 25 | ||||||
| 6 | 16 | ||||||
| 61 | 310 | ||||||
| 152 | 195 | ||||||
| 97 | 176 | ||||||
| 40 | 41 | ||||||
| 27 | 57 | ||||||
| 27 | 215 | ||||||
| 8 | 9 | ||||||
| 8 | 33 | ||||||
| 28 | 59 | ||||||
| 24 | 54 | ||||||
| 28 | 38 | ||||||
| 6 | 142 | ||||||
| 33 | 98 | ||||||
| 49 | 111 | ||||||
| 49 | 417 | ||||||
| 21 | 112 | ||||||
| 21 | 306 | ||||||
| 15 | 20 | ||||||
| 24 | 768 | ||||||
| 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.105 | ||||||
| 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__ |