Branch Coverage

blib/lib/IO/Socket/Timeout.pm
Criterion Covered Total %
branch 23 36 63.8


line true false branch
31 0 8 unless defined $socket
33 0 8 unless $socket->isa('IO::Socket')
37 5 3 if (not $ENV{'PERL_IO_SOCKET_TIMEOUT_FORCE_SELECT'} and $osname eq 'darwin' || $osname eq 'linux' || $osname eq 'freebsd') { }
54 8 4 unless (exists $INC{$path})
70 1 4 if ($ENV{'PERL_IO_SOCKET_TIMEOUT_FORCE_SELECT'} or $osname ne 'darwin' and $osname ne 'linux' and $osname ne 'freebsd')
78 14 2 $args_count == 4 ? :
2 15 if $_prevent_deep_recursion or not PerlIO::via::Timeout::has_timeout_layer($_[0]) or not PerlIO::via::Timeout::timeout_enabled($_[0])
95 1 4 if ($ENV{'PERL_IO_SOCKET_TIMEOUT_FORCE_SELECT'} or $osname ne 'darwin' and $osname ne 'linux' and $osname ne 'freebsd')
103 0 0 $args_count == 3 ? :
6 0 $args_count == 4 ? :
0 6 if $_prevent_deep_recursion or not PerlIO::via::Timeout::has_timeout_layer($_[0]) or not PerlIO::via::Timeout::timeout_enabled($_[0])
125 0 7 if grep {$_ < 0;} grep({defined $_;} map({do { *$self }->{$_};} 'ReadTimeout', 'WriteTimeout'))
131 4 0 if @_ > 1
137 3 0 if @_ > 1
145 5 0 if @_ > 1
155 12 0 if (do { *$self }->{'TimeoutEnabled'}) { }
169 0 12 unless $self->setsockopt(1, 20, $read_struct)
172 0 12 unless $self->setsockopt(1, 21, $write_struct)