Adding extension-methods to be tested

This commit is contained in:
tomas 2006-01-16 22:24:03 +00:00
parent 962115c76a
commit 1d2e800f51
3 changed files with 18 additions and 3 deletions

6
tests/oci8.lua Normal file
View File

@ -0,0 +1,6 @@
---------------------------------------------------------------------
-- Oracle specific tests and configurations.
-- $Id: oci8.lua,v 1.1 2006/01/16 22:24:03 tomas Exp $
---------------------------------------------------------------------
table.insert (CUR_METHODS, "numrows")

6
tests/postgres.lua Normal file
View File

@ -0,0 +1,6 @@
---------------------------------------------------------------------
-- PostgreSQL specific tests and configurations.
-- $Id: postgres.lua,v 1.1 2006/01/16 22:24:03 tomas Exp $
---------------------------------------------------------------------
table.insert (CUR_METHODS, "numrows")

View File

@ -47,14 +47,17 @@ function test_object (obj, objmethods)
return obj
end
ENV_METHODS = { "close", "connect", }
ENV_OK = function (obj)
return test_object (obj, { "close", "connect", })
return test_object (obj, ENV_METHODS)
end
CONN_METHODS = { "close", "commit", "execute", "rollback", "setautocommit", }
CONN_OK = function (obj)
return test_object (obj, { "close", "commit", "execute", "rollback", "setautocommit", })
return test_object (obj, CONN_METHODS)
end
CUR_METHODS = { "close", "fetch", "getcolnames", "getcoltypes", }
CUR_OK = function (obj)
return test_object (obj, { "close", "fetch", "getcolnames", "getcoltypes", })
return test_object (obj, CUR_METHODS)
end
---------------------------------------------------------------------