Branch Coverage

blib/lib/Protocol/SOCKS.pm
Criterion Covered Total %
branch 15 22 68.1


line true false branch
114 4 3 if ($type == 1) { }
0 3 elsif ($type == 4) { }
3 0 elsif ($type == 3) { }
133 0 10 unless length $$buf > 1
136 5 5 if ($type == 1) { }
1 4 elsif ($type == 4) { }
4 0 elsif ($type == 3) { }
137 0 5 unless length $$buf >= 5
139 1 4 unless $ip
142 0 1 unless length $$buf >= 17
147 0 4 unless length $$buf >= 2 + $len