Algorithm-SpatialIndex-Strategy-MedianQuadTree
view release on metacpan or search on metacpan
t/30strategy-mquadtree.t view on Meta::CPAN
use strict;
use warnings;
use Test::More tests => 63;
use Algorithm::SpatialIndex;
my $tlibpath;
BEGIN {
$tlibpath = -d "t" ? "t/lib" : "lib";
}
use lib $tlibpath;
use Algorithm::SpatialIndex::MQTreeTest;
Algorithm::SpatialIndex::MQTreeTest->run('Memory');
t/31strategy-mquadtree-dbi.t view on Meta::CPAN
use warnings;
use Test::More;
use Algorithm::SpatialIndex;
my $do_unlink = !$ENV{PERL_ASI_TESTING_PRESERVE};
my $tlibpath;
BEGIN {
$tlibpath = -d "t" ? "t/lib" : "lib";
}
use lib $tlibpath;
if (not eval {require DBI; require DBD::SQLite; 1;}) {
plan skip_all => 'These tests require DBI and DBD::SQLite';
}
plan tests => 64;
my $dbfile = '31strategy-mquadtree-dbi.test.sqlite';
unlink $dbfile if -f $dbfile;
my $dbh = DBI->connect("dbi:SQLite:dbname=$dbfile", "", "");
( run in 0.250 second using v1.01-cache-2.11-cpan-87723dcf8b7 )