Full/Base.pm

filter: Statementstmt 40.7% 116 / 285 Branchbran 7.1% 3 / 42 Conditioncond 7.6% 1 / 13 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 80.4% 66 / 82 Podpod n/a totaltotal 43.4% 186 / 428 CC 29 SCAR 15.5
CC
29
Cov
35%
__ANON__
25.6
__ANON__
11.9
__ANON__
8.4
CRAP 4.7
↑ Summary Full.pm »
1 package YAML::Full::Base;
2 1 $YAML::Full::Base::VERSION = '0.0.1';
3 # use Mo qw'build default builder xxx import nonlazy';
4 # The following line of code was produced from the previous line by
5 # Mo::Inline version 0.38
6 0 ▶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};*{$M.'nonlazy::e'}=sub{${shift.':N'}=1};@f=qw[build default builder xxx import nonlazy];use strict;use warnings;
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine BEGIN: called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=2 SCAR=11.3
Subroutine __ANON__: called CC=4 SCAR=21.3
Subroutine __ANON__: not called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=3 SCAR=17.0
Subroutine __ANON__: not called CC=2 SCAR=11.3
Subroutine __ANON__: called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=4 SCAR=21.3
Subroutine __ANON__: called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=8 SCAR=32.4
Subroutine __ANON__: not called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=3 SCAR=17.0
Subroutine __ANON__: called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=5 SCAR=24.8
Subroutine __ANON__: not called CC=3 SCAR=17.0
Subroutine __ANON__: called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=1 SCAR=2.4
Subroutine __ANON__: not called CC=1 SCAR=2.4
Subroutine __ANON__: called CC=4 SCAR=21.3
Subroutine __ANON__: called CC=1 SCAR=2.4
Branch: 21 branches
BranchTrueFalseTotal
if not exists $s->{$_} 0 0 0
if $e{"M"} 0 11 11
unless $#_ % 2 0 0 0
$#_ ? : 0 0 0
($c) = @{$c . '::ISA';} and do { do { @B = ($c . '::BUILD', @B) } } 0 0 0
exists &$_ and &$_($s) 0 0 0
exists $a{"default"} or return $m 0 0 0
'HASH' eq ($r = ref $d) ? : 0 0 0
'ARRAY' eq $r ? : 0 0 0
'CODE' eq $r ? : 0 0 0
exists $a{'lazy'} ? : 0 0 0
$i or do { $P . ':E' }->{$n} = $g and return $m 0 0 0
$#_ ? : 0 0 0
!exists $_[0]{$n} ? : 0 0 0
my $b = $a{"builder"} or return $m 0 0 0
exists $a{'lazy'} ? : 0 0 0
$i or do { $P . ':E' }->{$n} = \&{$P . $b;} and return $m 0 0 0
$#_ ? : 0 0 0
!exists $_[0]{$n} ? : 0 0 0
@_ == 2 && !$_[1] ? : 0 11 11
@_ == 1 ? : 11 0 11
Condition7%1/13
$i || (do { $P . ':E' }->{$n} = $g) && (return $m)
l!l&&r!l&&!r
000
do { $P . ':E' }->{$n} = $g and return $m
!ll
00
$i || (do { $P . ':E' }->{$n} = \&{$P . $b;}) && (return $m)
l!l&&r!l&&!r
000
do { $P . ':E' }->{$n} = \&{$P . $b;} and return $m
!ll
00
@_ == 2 and not $_[1]
!ll&&!rl&&r
1100
MC/DC0%0/2
$i || (do { $P . ':E' }->{$n} = $g) && (return $m)
$i do { $P . ':E' }->{$n} = $g
MC/DC0%0/2
$i || (do { $P . ':E' }->{$n} = \&{$P . $b;}) && (return $m)
$i do { $P . ':E' }->{$n} = \&{$P . $b;}
MC/DC0%0/2
@_ == 2 and not $_[1]
@_ == 2 not $_[1]
Truth table0%0/3
A || B
A= $iB= do { $P . ':E' }->{$n} = $g
ABresult
1X1
011
000
Truth table0%0/3
A || B
A= $iB= do { $P . ':E' }->{$n} = \&{$P . $b;}
ABresult
1X1
011
000
Truth table33%1/3
A and not(B)
A= @_ == 2B= not $_[1]
ABresult
0X0
100
111
7  
8 1 1;
↑ Summary Full.pm »