| 1 | # -*- mode: Perl; -*- | ||
| 2 | package Eve::GatewayPgSqlTestBase; | ||
| 3 | |||
| 4 | 1 | ▶ | use parent qw(Eve::Test); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 0 | ▶ | use Eve::RegistryStub; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 10 | |||
| 11 | use Eve::Registry; | ||
| 12 | |||
| 13 | Eve::GatewayPgSqlTestBase->SKIP_CLASS(1); | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | B<Eve::GatewayPgSqlTestBase> - a postgres gateway test base class. | ||
| 18 | |||
| 19 | =head1 SYNOPSIS | ||
| 20 | |||
| 21 | package SomeGatewayTest; | ||
| 22 | |||
| 23 | use parent qw(Eve::GatewayPgSqlTestBase); | ||
| 24 | |||
| 25 | # put your gateway tests here | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | B<Eve::GatewayPgSqlTestBasey> is the class that provides setup for all | ||
| 30 | postgres gateway classes test cases. | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | sub setup { | ||
| 35 | my $self = shift; | ||
| 36 | |||
| 37 | my $registry = Eve::Registry->new(); | ||
| 38 | $self->{'pgsql'} = $registry->get_pgsql(); | ||
| 39 | $self->{'dbh'} = $self->{'pgsql'}->get_connection()->dbh; | ||
| 40 | } | ||
| 41 | |||
| 42 | =head1 SEE ALSO | ||
| 43 | |||
| 44 | =over 4 | ||
| 45 | |||
| 46 | =item L<Eve::Test> | ||
| 47 | |||
| 48 | =item L<Test::Class> | ||
| 49 | |||
| 50 | =back | ||
| 51 | |||
| 52 | =head1 LICENSE AND COPYRIGHT | ||
| 53 | |||
| 54 | Copyright 2010-2013 Sergey Konoplev, Igor Zinovyev. | ||
| 55 | |||
| 56 | This program is free software; you can redistribute it and/or modify it | ||
| 57 | under the terms of either: the GNU General Public License as published | ||
| 58 | by the Free Software Foundation; or the Artistic License. | ||
| 59 | |||
| 60 | See http://dev.perl.org/licenses/ for more information. | ||
| 61 | |||
| 62 | =head1 AUTHOR | ||
| 63 | |||
| 64 | =over 4 | ||
| 65 | |||
| 66 | =item L<Sergey Konoplev|mailto:gray.ru@gmail.com> | ||
| 67 | |||
| 68 | =item L<Igor Zinovyev|mailto:zinigor@gmail.com> | ||
| 69 | |||
| 70 | =back | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | 1; | ||