����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#use diagnostics;
use Test::More;
use NetAddr::IP;
use NetAddr::IP::Util qw(addconst);
my @ips = qw!
::0:0f00
::FF:1e10
::ffFF:2d20
::eFF:3c30
::eeFF:4b40
::FF:5a50
::FF:6960
::FF:7870
::FF:8780
::FF:9690
::FF:a5a0
::FF:b4b0
::FF:c3c0
::FF:d2d0
::FF:e1e0
::FF:f0f0
!;
my @mask = qw! 127 126 125 124 123 122 121 120 !;
if (defined($ENV{LIGHTERIPTESTS}) and $ENV{LIGHTERIPTESTS} =~ /yes/i) {
pop @mask; pop @mask;
}
my $tests = 0;
my @addrs;
foreach(@mask) {
foreach my $ip (@ips) {
push @addrs, new NetAddr::IP($ip,$_);
}
$tests += ((2**(128 - $_)) * @ips)
}
$tests += (5 * @ips * @mask);
plan tests => $tests;
for my $a (@addrs)
{
isa_ok($a, 'NetAddr::IP');
my $re = $a->re6;
my $rx;
eval { $rx = qr/$re/ };
diag "Compilation of the resulting regular expression failed: $@"
unless ok(!$@, "Compilation of the resulting regular expression");
for (my $ip = $a->network;
$ip < $a->broadcast && $a->masklen != 128;
$ip ++)
{
ok($a->addr =~ m/$rx/, "Match of $ip in $a");
}
ok($a->broadcast->addr =~ m/$rx/, "Match of broadcast of $a");
my $under = $a->network->copy;
$under->{addr} = (addconst($under->{addr},-1))[1];
my $over = $a->broadcast->copy;
$over->{addr} = (addconst($over->{addr},1))[1];
ok($under !~ m/$rx/, "$under does not match");
ok($over !~ m/$rx/, "$over does not match");
ok(NetAddr::IP->new('::') !~ m/$rx/, ":: does not match");
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| canon.t | File | 480 B | 0644 |
|
| constants.t | File | 488 B | 0644 |
|
| full.t | File | 721 B | 0644 |
|
| full6-uri.t | File | 727 B | 0644 |
|
| full6.t | File | 721 B | 0644 |
|
| imhoff.t | File | 873 B | 0644 |
|
| loops.t | File | 647 B | 0644 |
|
| lower.t | File | 220 B | 0644 |
|
| masklen.t | File | 345 B | 0644 |
|
| new-store.t | File | 812 B | 0644 |
|
| nofqdn.t | File | 437 B | 0644 |
|
| old-store.t | File | 841 B | 0644 |
|
| over-arr.t | File | 500 B | 0644 |
|
| over-qq.t | File | 800 B | 0644 |
|
| relops.t | File | 1.53 KB | 0644 |
|
| rfc3021.t | File | 627 B | 0644 |
|
| short.t | File | 1.7 KB | 0644 |
|
| splitref.t | File | 749 B | 0644 |
|
| v4-coalesce.t | File | 1.47 KB | 0644 |
|
| v4-compact.t | File | 2.18 KB | 0644 |
|
| v4-compplus.t | File | 531 B | 0644 |
|
| v4-hostenum.t | File | 1.02 KB | 0644 |
|
| v4-re.t | File | 826 B | 0644 |
|
| v4-split-bulk.t | File | 547 B | 0644 |
|
| v4-split-list.t | File | 1.17 KB | 0644 |
|
| v4-splitplan.t | File | 2.23 KB | 0644 |
|
| v4-sprefix.t | File | 779 B | 0644 |
|
| v4-xprefix.t | File | 773 B | 0644 |
|
| v6-re.t | File | 1.42 KB | 0644 |
|
| v6-split-bulk.t | File | 513 B | 0644 |
|
| v6-splitplan.t | File | 2.35 KB | 0644 |
|
| wildcard.t | File | 546 B | 0644 |
|