DBIx-Custom / t / dbix-custom-query.t /
Newer Older
29 lines | 0.562kb
packaging one directory
yuki-kimoto authored on 2009-11-16
1
use Test::More 'no_plan';
2

            
3
use strict;
4
use warnings;
5
use DBIx::Custom::Query;
6

            
7
# Function for test name
8
my $test;
9
sub test{
10
    $test = shift;
11
}
12

            
13
# Variables for test
14
my $query;
15

            
16
test 'Accessors';
17
$query = DBIx::Custom::Query->new(
18
    sql              => 'a',
19
    key_infos        => 'b',
rename bind_filter to query_...
yuki-kimoto authored on 2010-04-28
20
    query_filter      => 'c',
packaging one directory
yuki-kimoto authored on 2009-11-16
21
    sth              => 'e',
22
    fetch_filter     => 'f',
23
);
24

            
25
is($query->sql, 'a', "$test : sql");
26
is($query->key_infos, 'b', "$test : key_infos ");
rename bind_filter to query_...
yuki-kimoto authored on 2010-04-28
27
is($query->query_filter, 'c', "$test : query_filter");
packaging one directory
yuki-kimoto authored on 2009-11-16
28
is($query->sth, 'e', "$test : sth");
29