test cleanup
|
1 |
use strict; |
2 |
use warnings; |
|
3 | ||
4 |
use FindBin; |
|
5 |
$ENV{DBIX_CUSTOM_TEST_RUN} = 1; |
|
6 | ||
7 |
use DBIx::Custom; |
|
8 |
{ |
|
9 |
package DBIx::Custom; |
|
10 |
no warnings 'redefine'; |
|
test cleanup
|
11 |
has dsn => 'dbi:SQLite:dbname=:memory:'; |
test cleanup
|
12 |
sub quote { '""' } |
13 |
sub create_table1 { 'create table table1 (key1, key2);' } |
|
cleanup test
|
14 |
sub create_table1_2 {'create table table1 (key1, key2, key3, key4, key5);' } |
test cleanup
|
15 |
sub create_table1_type { 'create table table1 (key1 Date, key2 datetime);' } |
test cleanup
|
16 |
sub create_table2 { 'create table table2 (key1, key3);' } |
17 |
sub create_table_reserved { 'create table "table" ("select", "update")' } |
|
test cleanup
|
18 |
} |
19 | ||
20 |
require "$FindBin::Bin/common.t"; |