lib/Rex/Hardware/Network/Linux.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 11 | 26 | 42.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
100 | 4 | 0 | 2 | $cur_dev and $cur_dev ne $new_dev |
147 | 24 | 0 | 21 | $cur_dev and $cur_dev ne $new_dev |
185 | 21 | 5 | 19 | $scope eq "global" and $dev_name ne $cur_dev |
0 | 26 | 0 | $dev_name eq $cur_dev and $dev->{$cur_dev}{'ip'} |
line | l | !l | condition |
---|---|---|---|
180 | 23 | 22 | $4 || '' |
336 | 0 | 0 | $pid_cmd ||= "" |
342 | 0 | 0 | $cmd ||= "" |
343 | 0 | 0 | $state ||= "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
182 | 45 | 0 | 0 | $7 || $6 |
279 | 0 | 0 | 0 | $_->{'destination'} eq "0.0.0.0" or $_->{'destination'} eq "default" |