[prev in list] [next in list] [prev in thread] [next in thread]
List: ipfire-development
Subject: [PATCH 3/3] perl: Add test for the lookup_network_has_flag() function
From: Stefan Schantl <stefan.schantl () ipfire ! org>
Date: 2020-08-30 10:36:02
Message-ID: 20200830103602.6816-3-stefan.schantl () ipfire ! org
[Download RAW message or body]
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
src/perl/t/Location.t | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/perl/t/Location.t b/src/perl/t/Location.t
index 0d9a1a5..a82bbb1 100644
--- a/src/perl/t/Location.t
+++ b/src/perl/t/Location.t
@@ -12,7 +12,7 @@ use warnings;
my $testdb = $ENV{'database'};
my $keyfile = $ENV{'keyfile'};
-use Test::More tests => 9;
+use Test::More tests => 10;
BEGIN { use_ok('Location') };
#########################
@@ -62,3 +62,6 @@ ok($as_name eq "Lightning Wire Labs GmbH", "Test 10 - Get name for \
AS204867.");
my @locations = &Location::database_countries($db);
ok(@locations != 0, "Test 11 - Get database countries.");
+
+my $network_flag_anycast = &Location::lookup_network_has_flag($db, $address, \
"LOC_NETWORK_FLAG_ANYCAST"); +ok($network_flag_anycast, "Network has Anycast flag.");
--
2.20.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic