Branch Coverage

blib/lib/ReadonlyX.pm
Criterion Covered Total %
branch 46 62 74.1


line true false branch
25 1 16 ref $_[1] eq 'ARRAY' && $#_ == 1 && ref $_[1] eq 'ARRAY' ? :
30 2 14 unless @_ % 2 == 1 or ref $_[1] eq 'HASH'
32 4 10 ref $_[1] eq 'HASH' && $#_ == 1 ? :
38 0 0 $ref eq 'REF' ? :
12 0 $ref eq '' ? :
2 13 $ref eq 'HASH' ? :
3 15 $ref eq 'ARRAY' ? :
12 6 unless $ref eq 'ARRAY' ? $_[0] = $_[1] : ($ref eq 'HASH' ? $_[0] = $_[1] : $ref eq 'SCALAR')
47 2 0 defined $_[1] ? :
2 3 if $type eq 'SCALAR' or $type eq ''
49 2 0 defined $_[1] ? :
2 1 if $type eq 'HASH'
50 1 0 defined $_[1] ? :
1 0 if $type eq 'ARRAY'
55 112 43 $#_ ? :
56 105 50 if ($type eq '') { }
2 48 elsif ($type eq 'SCALAR') { }
24 24 elsif ($type eq 'HASH') { }
24 0 elsif ($type eq 'ARRAY') { }
0 0 elsif ($type eq 'REF') { }
79 0 0 if $refref eq 'ARRAY'
81 0 0 if $refref eq 'HASH'
91 5 5 if ref $retval eq 'REF'
93 4 0 $type eq 'ARRAY' ? :
5 4 $type eq 'HASH' ? :
1 9 $type eq 'SCALAR' || $type eq '' ? :
100 3 1 wantarray ? :
3 2 wantarray ? :
5 0 $type eq 'HASH' ? :
4 5 $type eq 'ARRAY' ? :
1 9 $type eq 'SCALAR' ? :