1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 06:08:38 -04:00

added a boilerplace for test

This commit is contained in:
Kenichi Ishigaki 2019-01-26 06:56:16 +09:00
parent 7347e226a3
commit 90ec098f1c

View file

@ -1,7 +1,9 @@
#!perl -w
use strict;
use Test::More tests => 4;
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;
use if -d ".git", "Test::FailWarnings";
our $scan_results = [
{ nodepath => 1 },
@ -9,8 +11,7 @@ our $scan_results = [
{ nodepath => 3 },
];
my $dbh = DBI->connect("dbi:SQLite:dbname=:memory:", '', '',
{RaiseError => 1, AutoCommit => 1});
my $dbh = connect_ok(RaiseError => 1, AutoCommit => 1);
# register the module
$dbh->sqlite_create_module(perl => "DBD::SQLite::VirtualTable::PerlData");
@ -90,4 +91,6 @@ is $ok, 1, "We survive an isnull comparison on the right side";
undef $ok;
#my $rows = $sth->fetchall_arrayref;
#use Data::Dumper;
#warn Dumper $rows;
#warn Dumper $rows;
done_testing;