add explicit tests for new IPv6 stuff

This commit is contained in:
Zane C. B-H 2019-02-25 23:54:55 -06:00
parent 60bb179e74
commit edaaadd874
1 changed files with 7 additions and 1 deletions

View File

@ -179,4 +179,10 @@ $search->set_ports;
@found=$search->search($res);
ok( $#found eq '6', 'search, port+state reset') or diag('"'.$#found.'" number of returned connections for a empty search instead of "6"... failed to reset the ports and states');
done_testing(20);
# find all IPv6 addresses
$search->set_cidrs( ['::/0'] );
@found=$search->search($res);
ok( $#found eq '0', 'IPv6 CIDR search 1') or diag('"'.$#found.'" number of returned connections for ::/0 instead of "0"');
ok( $found[0]->{local_pp} eq 'lo0', 'IPv6 % removal test') or diag('"local_pp" not defined for removed % section of IPv6 address. "lo0" expected');
done_testing(22);