Igor Zinovyev > Eve > Eve::DbiStub

Download:
Eve-0.06.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Eve::DbiStub - a stub for replacing the database in unit tests.

SYNOPSIS ^

    my $data_hash = Eve::DbiStub->get_compiled_data();

    my $function_return_data = $data_hash->{'test_function_1'}->{'data'};

METHODS ^

get_compiled_data()

Returns compiled data that is to be returned from stored procedures after being processed by a database adapter.

get_data()

Returns raw data that is to be returned from stored procedures prior to being processed by the database adapter.

mock_sth()

Returns a mock statement handle.

mock_dbh()

Returns a mock database connection handle.

main()

Main procedure that is being run when the module is being required. Fakes the DBI package by replacing it with a Test::MockObject object.

SEE ALSO ^

DBI
DBD::Pg
Eve::Test
Test::Class
Test::MockObject
Test::MockObject::Extends

LICENSE AND COPYRIGHT ^

Copyright 2010-2013 Sergey Konoplev, Igor Zinovyev.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

AUTHOR ^

Sergey Konoplev
Igor Zinovyev
syntax highlighting: