diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-18 16:55:31 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-18 16:55:31 +0000 |
commit | 0af57e2595922c9ee59d7cd489daf37a3550496c (patch) | |
tree | 73f8069e421e64222380fb3d30b2fb1277f80cd3 /libsqlitepp/unittests | |
parent | Fixes for tidy (diff) | |
download | libdbpp-sqlite-0af57e2595922c9ee59d7cd489daf37a3550496c.tar.bz2 libdbpp-sqlite-0af57e2595922c9ee59d7cd489daf37a3550496c.tar.xz libdbpp-sqlite-0af57e2595922c9ee59d7cd489daf37a3550496c.zip |
Clang format
Diffstat (limited to 'libsqlitepp/unittests')
-rw-r--r-- | libsqlitepp/unittests/testsqlite.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/libsqlitepp/unittests/testsqlite.cpp b/libsqlitepp/unittests/testsqlite.cpp index f742acd..81127c8 100644 --- a/libsqlitepp/unittests/testsqlite.cpp +++ b/libsqlitepp/unittests/testsqlite.cpp @@ -1,27 +1,24 @@ #define BOOST_TEST_MODULE TestSQLite #include <boost/test/unit_test.hpp> +#include <boost/date_time/posix_time/posix_time.hpp> +#include <column.h> #include <definedDirs.h> #include <modifycommand.h> #include <selectcommand.h> -#include <column.h> #include <sqlite-mock.h> #include <testCore.h> -#include <boost/date_time/posix_time/posix_time.hpp> class StandardMockDatabase : public DB::PluginMock<SQLite::Mock> { - public: - StandardMockDatabase() : DB::PluginMock<SQLite::Mock>("sqlitemock", { - rootDir / "sqliteschema.sql" }) - { - } +public: + StandardMockDatabase() : DB::PluginMock<SQLite::Mock>("sqlitemock", {rootDir / "sqliteschema.sql"}) { } }; -BOOST_GLOBAL_FIXTURE( StandardMockDatabase ); +BOOST_GLOBAL_FIXTURE(StandardMockDatabase); -BOOST_FIXTURE_TEST_SUITE( Core, DB::TestCore ); +BOOST_FIXTURE_TEST_SUITE(Core, DB::TestCore); -BOOST_AUTO_TEST_CASE( transactions ) +BOOST_AUTO_TEST_CASE(transactions) { auto ro = DB::MockDatabase::openConnectionTo("sqlitemock"); @@ -37,7 +34,7 @@ BOOST_AUTO_TEST_CASE( transactions ) BOOST_REQUIRE_EQUAL(false, ro->inTx()); } -BOOST_AUTO_TEST_CASE( bindAndSend ) +BOOST_AUTO_TEST_CASE(bindAndSend) { auto rw = DB::MockDatabase::openConnectionTo("sqlitemock"); @@ -49,7 +46,7 @@ BOOST_AUTO_TEST_CASE( bindAndSend ) BOOST_REQUIRE_EQUAL(2, rw->insertId()); } -BOOST_AUTO_TEST_CASE( bindAndSelect ) +BOOST_AUTO_TEST_CASE(bindAndSelect) { auto ro = DB::MockDatabase::openConnectionTo("sqlitemock"); @@ -67,4 +64,3 @@ BOOST_AUTO_TEST_CASE( bindAndSelect ) } BOOST_AUTO_TEST_SUITE_END(); - |