packaging one directory
|
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', |
|
add all tests
|
19 |
columns => 'b', |
20 |
filter => 'c', |
|
packaging one directory
|
21 |
sth => 'e', |
22 |
fetch_filter => 'f', |
|
23 |
); |
|
24 | ||
25 |
is($query->sql, 'a', "$test : sql"); |
|
add all tests
|
26 |
is($query->columns, 'b', "$test : columns "); |
27 |
is($query->filter, 'c', "$test : filter"); |
|
packaging one directory
|
28 |
is($query->sth, 'e', "$test : sth"); |
29 |