Branch Coverage

blib/lib/ReadonlyX.pm
Criterion Covered Total %
branch 56 72 77.7


line true false branch
23 6 14 $#_ == 0 && defined $_[0] ? :
27 2 12 ref $var eq 'ARRAY' && $#_ == 1 && ref $var eq 'ARRAY' ? :
14 6 if $#_ > 0
33 4 15 $#_ == 0 && defined $_[0] ? :
35 2 17 unless @_ % 2 == 1 or $ref eq 'HASH'
37 5 8 ref $var eq 'HASH' && $#_ == 1 ? :
13 4 if $#_ > 0
43 1 19 $#_ == 0 && defined $_[0] ? :
45 0 0 $ref eq 'REF' ? :
14 0 $ref eq '' ? :
2 15 $ref eq 'HASH' ? :
3 17 $ref eq 'ARRAY' ? :
14 6 unless $ref eq 'ARRAY' ? $_[0] = $var : ($ref eq 'HASH' ? $_[0] = $var : $ref eq 'SCALAR')
54 2 0 defined $_[1] ? :
2 3 if $type eq 'SCALAR' or $type eq ''
56 2 0 defined $_[1] ? :
2 1 if $type eq 'HASH'
57 1 0 defined $_[1] ? :
1 0 if $type eq 'ARRAY'
62 196 51 $#_ ? :
63 191 56 if ($type eq '') { }
2 54 elsif ($type eq 'SCALAR') { }
27 27 elsif ($type eq 'HASH') { }
27 0 elsif ($type eq 'ARRAY') { }
0 0 elsif ($type eq 'REF') { }
86 0 0 if $refref eq 'ARRAY'
88 0 0 if $refref eq 'HASH'
98 5 5 if ref $retval eq 'REF'
100 4 0 $type eq 'ARRAY' ? :
5 4 $type eq 'HASH' ? :
1 9 $type eq 'SCALAR' || $type eq '' ? :
107 3 1 wantarray ? :
3 2 wantarray ? :
5 0 $type eq 'HASH' ? :
4 5 $type eq 'ARRAY' ? :
1 9 $type eq 'SCALAR' ? :