LCOV - code coverage report
Current view: top level - dbaccess/qa/unit - hsqldb.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 10 10 100.0 %
Date: 2014-04-11 Functions: 10 11 90.9 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  */
       9             : 
      10             : #include "dbtest_base.cxx"
      11             : 
      12             : #include <com/sun/star/sdb/XOfficeDatabaseDocument.hpp>
      13             : #include <com/sun/star/sdbc/XColumnLocate.hpp>
      14             : #include <com/sun/star/sdbc/XConnection.hpp>
      15             : #include <com/sun/star/sdbc/XResultSet.hpp>
      16             : #include <com/sun/star/sdbc/XRow.hpp>
      17             : #include <com/sun/star/sdbc/XStatement.hpp>
      18             : 
      19             : using namespace ::com::sun::star;
      20             : using namespace ::com::sun::star::sdb;
      21             : using namespace ::com::sun::star::sdbc;
      22             : using namespace ::com::sun::star::uno;
      23             : 
      24           3 : class HSQLDBTest
      25             :     : public DBTestBase
      26             : {
      27             : public:
      28             :     void testEmptyDBConnection();
      29             :     void testIntegerDatabase();
      30             : 
      31           2 :     CPPUNIT_TEST_SUITE(HSQLDBTest);
      32           1 :     CPPUNIT_TEST(testEmptyDBConnection);
      33           2 :     CPPUNIT_TEST_SUITE_END();
      34             : };
      35             : 
      36             : /**
      37             :  * Test the loading of an "empty" file, i.e. the embedded database has not yet
      38             :  * been initialised (as occurs when a new .odb is created and opened by base).
      39             :  */
      40           1 : void HSQLDBTest::testEmptyDBConnection()
      41             : {
      42             :     uno::Reference< XOfficeDatabaseDocument > xDocument =
      43           1 :         getDocumentForFileName("hsqldb_empty.odb");
      44             : 
      45           1 :     getConnectionForDocument(xDocument);
      46           1 : }
      47             : 
      48           1 : CPPUNIT_TEST_SUITE_REGISTRATION(HSQLDBTest);
      49             : 
      50           4 : CPPUNIT_PLUGIN_IMPLEMENT();
      51             : 
      52             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10