lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit 084b5bf4 authored by Stefan Schantl's avatar Stefan Schantl Committed by Michael Tremer

perl: Add test for the database_countries() function.

Signed-off-by: default avatarStefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 33a92f6a
......@@ -12,7 +12,7 @@ use warnings;
my $testdb = $ENV{'database'};
my $keyfile = $ENV{'keyfile'};
use Test::More tests => 7;
use Test::More tests => 8;
BEGIN { use_ok('Location') };
#########################
......@@ -56,3 +56,6 @@ if(defined($as_number)) { fail("Test 8 - Lookup Autonomous System Number for add
$as_number = &Location::lookup_asn($db, "a.b.c.d");
if(defined($as_number)) { fail("Test 9 - Lookup Autonomous System Number for invalid address.") }
my @locations = &Location::database_countries($db);
ok(@locations != 0, "Test 10 - Get database countries.");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment