DBIx-Custom / t / tmp / dbix-custom-query.t /
Newer Older
29 lines | 0.562kb
many many changes
yuki-kimoto authored on 2010-04-30
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',
20
    query_filter      => 'c',
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 ");
27
is($query->query_filter, 'c', "$test : query_filter");
28
is($query->sth, 'e', "$test : sth");
29