DBIx-Custom / t / tmp / dbix-custom-query.t /
c26ffb6 14 years ago
1 contributor
29 lines | 0.562kb
use Test::More 'no_plan';

use strict;
use warnings;
use DBIx::Custom::Query;

# Function for test name
my $test;
sub test{
    $test = shift;
}

# Variables for test
my $query;

test 'Accessors';
$query = DBIx::Custom::Query->new(
    sql              => 'a',
    key_infos        => 'b',
    query_filter      => 'c',
    sth              => 'e',
    fetch_filter     => 'f',
);

is($query->sql, 'a', "$test : sql");
is($query->key_infos, 'b', "$test : key_infos ");
is($query->query_filter, 'c', "$test : query_filter");
is($query->sth, 'e', "$test : sth");