Branch Coverage

blib/lib/Net/Routing.pm
Criterion Covered Total %
branch 8 64 12.5


line true false branch
64 6 0 if ($^O eq 'linux') { }
0 0 elsif ($^O eq 'freebsd') { }
0 0 elsif ($^O eq 'netbsd') { }
0 0 elsif ($^O eq 'darwin') { }
101 0 4 if ($@)
109 3 1 unless my $routes = $self->get
122 0 0 if ($target eq 'all') { }
0 0 elsif ($target eq 'default') { }
0 0 elsif ($target =~ /^[0-9\.]+$/) { }
0 0 elsif ($target =~ m[^[0-9a-f:/]+$]i) { }
132 0 0 unless ($@)
140 0 0 unless ($@)
160 0 0 if ($target_type eq 'ipv4') { }
0 0 elsif ($target_type eq 'ipv6') { }
167 0 0 unless my $routes = $self->_routing_module_get
168 0 0 if ($target_type eq 'all')
176 0 0 if ($target_type eq 'default') { }
0 0 elsif ($target_type eq 'interface') { }
0 0 elsif ($target_type eq 'ipv4' or $target_type eq 'ipv6') { }
177 0 0 if ($$route{'default'})
183 0 0 if ($$route{'interface'} eq $target)
189 0 0 if ($$route{'route'} and $$route{'route'} ne '0.0.0.0/0' and $$route{'route'} ne '::/0')
196 0 0 if (not $@ and $r)
204 0 0 if (@routes == 0 and $target_type eq 'ipv4' || $target_type eq 'ipv6')
208 0 0 if ($$route{'default'})
229 0 0 if ($@)
234 0 0 unless (defined $routing)
239 0 0 unless (defined $routes)
258 0 0 if ($$route{'local'}) { }
0 0 elsif ($$route{'default'}) { }
275 7 65 exists $$route{'default'} ? :
57 15 exists $$route{'local'} ? :