Condition Coverage

blib/lib/IPC/Shareable.pm
Criterion Covered Total %
condition 133 207 64.2


and 3 conditions

line !l l&&!r l&&r condition
173 360 0 92 ref $val and $knot->_need_tie($val, $key)
178 138 0 36 ref $val and $knot->_need_tie($val, $i)
183 73 1 14 ref $val and $knot->_need_tie($val)
230 459 0 501 ref $val and my $inner = _is_child($val)
254 25 0 2 ref $val and my $child = _is_child($val)
263 20 0 0 ref $val and my $child = _is_child($val)
290 4 0 2 ref $val and my $child = _is_child($val)
488 130 5 1 defined $code and ref $code ne "CODE"
524 46 0 89 $flags == 2 and $lock_success
640 7 0 18 defined $_[0] and not ref $_[0]
7 0 18 defined $_[0] and not ref $_[0] and UNIVERSAL::isa($_[0], __PACKAGE__)
684 0 0 0 $^O eq 'freebsd' && $IPC::Shareable::Config{'longsize'} == 8
809 0 0 1 $child_knot and $child_knot->{'_key_hex'}
816 0 0 5 $knot_filter and $knot_filter->{'_key_hex'}
998 0 0 8 $stored_key and $stored_key == $protect_key
1057 0 327 1 $sem_remove_status != 1 and $sem_remove_status ne "0 but true"
1067 0 1 327 $seg_removed and $sem_removed
1133 1165 0 55 ref $val && _is_child($val)
1144 298 0 37 ref $_ && _is_child($_)
1154 8 0 6 ref $val && _is_child($val)
1184 0 822 375 defined $knot and index($json, "\"__ics__\"") != -1
1187 0 1096 101 defined $knot and $knot->{'_type_int'} == 2
1096 17 84 defined $knot and $knot->{'_type_int'} == 2 and ref $data eq "HASH"
1190 1 0 43 defined $prev && ref $prev
1218 204 44 365 ref $data->{$key} eq "HASH" and exists $data->{$key}{'__ics__'}
1228 21 0 171 ref $data->[$i] eq "HASH" and exists $data->[$i]{'__ics__'}
1230 19 1 151 ref $prev eq 'ARRAY' && $i <= $prev->$#*
1241 2 0 518 ref $existing && _is_child($existing)
1242 2 8 510 $inner and $inner->{'_key'} == $info->{'child_key'}
1331 1 496 2 $knot->attributes("limit") and $shm_size > 1073741824
1381 0 1 1 $knot->attributes("create") and $knot->attributes("exclusive")
1438 0 0 3 $thaw_ok and defined $storable_data
1484 0 113 3 defined $stored_protected and $stored_protected != 0
1497 85 10 48 $parent->{'_key'} == IPC_PRIVATE() and $parent->attributes("serializer") ne "json"
1625 0 0 28 $child and $child->seg
1659 2 0 7 $child_type eq "HASH" and tied %{$$data{$id};}
2 0 0 $child_type eq "ARRAY" and tied @{$$data{$id};}
1671 3 0 0 $child_type eq "HASH" and tied %{$$data[$id];}
0 0 3 $child_type eq "ARRAY" and tied @{$$data[$id];}
1702 0 0 1 $child && $child->{'_key_hex'}
1722 0 0 0 $child && $child->{'_key_hex'}
1802 94 1 104 not $verified_exclusive and $check_count < 10

or 2 conditions

line l !l condition
455 4 3 $opts{'var'} || 'HASH'
547 122 0 $knot->{'_locked_children'} // []
721 2 1 $int_to_hex{$k_int} // (next)
796 8 0 builtin::reftype($data) // ""
804 1 0 builtin::reftype($v) // ""
822 6 0 $segs->{$h}{'child_keys'} // []
823 1 5 $extra_child_keys{$h} // []
853 6 0 $segs->{$hex} // {}
860 6 0 $id_by_hex{$hex} // "?"
870 6 0 $sem->id // "?"
871 6 0 $sem->getval(0) // "?"
872 6 0 $sem->getval(1) // "?"
873 6 0 $sem->getval(2) // "?"
874 6 0 $sem->getval(3) // "?"
896 6 0 $seg->{'child_keys'} // []
897 1 5 $extra_child_keys{$hex} // []
918 1 5 delete $opts{'_proc_dir'} // "/proc/sys/kernel"
1519 142 0 builtin::reftype($val) || ''
1616 146 4 builtin::reftype($data) // ""
1653 119 3 builtin::reftype($parent->{'_data'}) || ''
1658 7 2 builtin::reftype($data->{$id}) || ''
1670 3 0 builtin::reftype($data->[$id]) || ''
1684 6 0 builtin::reftype($data) // ""
1696 1 0 builtin::reftype($v) // ""
1716 0 0 builtin::reftype($v) // ""
1753 404 96 $knot->attributes('key') || ''
1941 211 288 $opts->{'magic'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
578 1 2 5 not defined $_[0] or $_[0] ne __PACKAGE__
640 1 20 5 ref $_[0] or defined $_[0] and not ref $_[0] and UNIVERSAL::isa($_[0], __PACKAGE__)
924 0 0 0 $sysctl_out // `sysctl kern.sysv 2>/dev/null`
932 1 0 0 $sysctl_out // `sysctl kern.ipc 2>/dev/null`
1152 8 6 1 $type eq "SCALAR" or $type eq "REF"
1401 116 367 1 "IPC::Semaphore"->new($key, 0, $seg->flags & 511) // "IPC::Semaphore"->new($key, 4, $seg->flags)
1471 0 366 0 $process_register{$knot->seg->id} ||= $knot
1753 16 500 0 $key_str //= $knot->attributes('key') || ''
1940 212 287 0 $opts->{'owner'} || $$