Branch Coverage

blib/lib/File/FDpasser.pm
Criterion Covered Total %
branch 12 68 17.6


line true false branch
63 1 0 if ($File::FDpasser::OS eq 'bsd') { }
64 0 1 unless socketpair RD, WR, 1, 1, 0
66 0 0 unless pipe RD, WR
74 1 0 if ($File::FDpasser::OS eq 'bsd') { }
77 0 1 unless socket SCK, 1, 1, 0
79 0 1 unless bind SCK, $uaddr
80 0 1 unless listen SCK, 128
91 0 0 unless &bind_to_fs(, $name)
99 0 0 if ($File::FDpasser::OS eq 'bsd') { }
100 0 0 unless socket FH, 1, 1, 0
102 0 0 unless connect FH, $sun
104 0 0 unless open FH, $serv
105 0 0 unless (my_isastream(fileno FH))
112 0 0 if (ref($conn) =~ /^IO::/)
116 0 0 if ($fd < 0)
122 0 0 if (ref($conn) =~ /^IO::/)
126 0 0 if ($fd < 0)
128 0 0 unless $fh->fdopen($fd, get_fopen_mode($fd))
135 2 0 if (ref($conn) =~ /^IO::/)
136 2 0 if (ref($sendfd) =~ /^IO::/)
137 0 2 unless ($conn =~ /^\d+$/ and $sendfd =~ /^\d+$/)
145 0 0 if (ref($lfd) =~ /^IO::/) { }
148 0 0 if ($fd < 0)
156 1 0 if (ref($LFH) =~ /^IO::/) { }
157 1 0 if ($File::FDpasser::OS eq 'bsd') { }
158 0 1 unless accept FH, $LFH
162 0 0 if ($fd < 0)
164 0 0 unless $fh->fdopen($fd, get_fopen_mode($fd))
174 0 0 if $rc < 0
177 0 0 if ($acc == 0)
178 0 0 if ($acc == 1 and not $app)
179 0 0 if ($acc == 1 and $app)
180 0 0 if ($acc == 2 and not $app)
181 0 0 if ($acc == 2 and $app)