Branch Coverage

blib/lib/Mutex/Util.pm
Criterion Covered Total %
branch 6 60 10.0


line true false branch
25 0 2 $^O =~ /mswin|mingw|msys|cygwin/i ? :
44 0 4 unless defined $obj->{$p}
46 0 4 if (ref $obj->{$p} eq 'ARRAY') { }
48 0 0 unless defined $obj->{$p}[$i]
49 0 0 if fileno $obj->{$p}[$i]
54 4 0 if fileno $obj->{$p}
67 0 0 unless defined $obj->{$p}
69 0 0 if (ref $obj->{$p} eq 'ARRAY') { }
71 0 0 unless defined $obj->{$p}[$i]
72 0 0 if (fileno $obj->{$p}[$i])
73 0 0 if $is_winenv
81 0 0 if (fileno $obj->{$p})
82 0 0 if $is_winenv
97 0 2 if (defined $i) { }
100 0 0 unless pipe $obj->{$r_sock}[$i], $obj->{$w_sock}[$i]
104 0 2 unless pipe $obj->{$r_sock}, $obj->{$w_sock}
115 0 0 if (defined $i) { }
118 0 0 unless socketpair $obj->{$r_sock}[$i], $obj->{$w_sock}[$i], 1, 1, 0
124 0 0 unless socketpair $obj->{$r_sock}, $obj->{$w_sock}, 1, 1, 0
135 0 0 if not defined $timeout and $sock_ready{"$socket"} > 1
139 0 0 if (not defined $timeout) { }
143 0 0 if $timeout < 0
144 0 0 if $timeout
151 0 0 if $val_bytes ne $zero_bytes
152 0 0 if $timeout and time > $timeout
155 0 0 if $delay
156 0 0 if time - $start > "0.03"
165 0 0 @_ == 3 ? :
0 0 unless (@_ == 3 ? sysread($_[0], $_[1], $_[2]) : sysread($_[0], $_[1], $_[2], $_[3]))
166 0 0 if $! == 4