DBIx-Custom / t / common-sqlite.t /
Newer Older
24 lines | 0.833kb
added common test executing ...
Yuki Kimoto authored on 2011-08-07
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
Yuki Kimoto authored on 2011-08-10
11
    has dsn => 'dbi:SQLite:dbname=:memory:';
added common test executing ...
Yuki Kimoto authored on 2011-08-07
12
    sub create_table1 { 'create table table1 (key1, key2);' }
cleanup test
Yuki Kimoto authored on 2011-08-08
13
    sub create_table1_2 {'create table table1 (key1, key2, key3, key4, key5);' }
test cleanup
Yuki Kimoto authored on 2011-08-10
14
    sub create_table1_type { 'create table table1 (key1 Date, key2 datetime);' }
test cleanup
Yuki Kimoto authored on 2011-08-10
15
    
16
    sub create_table1_highperformance { "create table table1 (ab, bc, ik, hi, ui, pq, dc);" }
17
    
test cleanup
Yuki Kimoto authored on 2011-08-10
18
    sub create_table2 { 'create table table2 (key1, key3);' }
test cleranup
Yuki Kimoto authored on 2011-08-10
19
    sub create_table2_2 { "create table table2 (key1, key2, key3)" }
20
    sub create_table3 { "create table table3 (key1, key2, key3)" }
test cleanup
Yuki Kimoto authored on 2011-08-10
21
    sub create_table_reserved { 'create table "table" ("select", "update")' }
added common test executing ...
Yuki Kimoto authored on 2011-08-07
22
}
23

            
24
require "$FindBin::Bin/common.t";