LCOV - code coverage report
Current view: top level - dbaccess/qa/unit - hsqldb.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 10 10 100.0 %
Date: 2015-06-13 12:38:46 Functions: 13 14 92.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             : 
      30           2 :     CPPUNIT_TEST_SUITE(HSQLDBTest);
      31           1 :     CPPUNIT_TEST(testEmptyDBConnection);
      32           5 :     CPPUNIT_TEST_SUITE_END();
      33             : };
      34             : 
      35             : /**
      36             :  * Test the loading of an "empty" file, i.e. the embedded database has not yet
      37             :  * been initialised (as occurs when a new .odb is created and opened by base).
      38             :  */
      39           1 : void HSQLDBTest::testEmptyDBConnection()
      40             : {
      41             :     uno::Reference< XOfficeDatabaseDocument > xDocument =
      42           1 :         getDocumentForFileName("hsqldb_empty.odb");
      43             : 
      44           1 :     getConnectionForDocument(xDocument);
      45           1 : }
      46             : 
      47           1 : CPPUNIT_TEST_SUITE_REGISTRATION(HSQLDBTest);
      48             : 
      49           4 : CPPUNIT_PLUGIN_IMPLEMENT();
      50             : 
      51             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11