Branch Coverage

blib/lib/App/ReslirpTunnel/Loop.pm
Criterion Covered Total %
branch 0 66 0.0


line true false branch
24 0 0 if (defined $pid and $pid == 0) { }
0 0 elsif (not defined $pid) { }
32 0 0 if defined $log_fh
40 0 0 if ($@)
44 0 0 if ($@)
75 0 0 unless grep {$fd == $_;} @keep_fds
104 0 0 unless ($close_later)
105 0 0 if length $ssh2tap_buff < $max_buff_size
106 0 0 if length $tap2ssh_buff < $max_buff_size
108 0 0 if (length $ssh2tap_buff >= 2)
110 0 0 if (length $ssh2tap_buff >= $ssh2tap_pkt_len + 2)
114 0 0 if (length $tap2ssh_buff > 0)
120 0 0 if $nfound <= 0
122 0 0 if (vec $rfds, $err_fd, 1)
124 0 0 if (not defined $n) { }
0 0 elsif ($n == 0) { }
133 0 0 if $1 =~ /^\s*$/
143 0 0 if (vec $rfds, $ssh_fd, 1)
145 0 0 if (not defined $n) { }
0 0 elsif ($n == 0) { }
154 0 0 if (vec $rfds, $tap_fd, 1)
156 0 0 if (not defined $n) { }
0 0 elsif ($n == 0) { }
168 0 0 if (vec $wfds, $ssh_fd, 1)
170 0 0 if (not defined $n) { }
0 0 elsif ($n == 0) { }
182 0 0 if (vec $wfds, $tap_fd, 1)
183 0 0 if (not defined $ssh2tap_pkt_len or length $ssh2tap_buff < $ssh2tap_pkt_len + 2) { }
190 0 0 if (not defined $n) { }
0 0 elsif ($n == 0) { }
200 0 0 if ($close_later)
209 0 0 if ($tunnel_closed and time > $err_close_time_limit)
214 0 0 if $tunnel_closed