summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 19:27:06 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 19:27:06 +0000
commit45cd6e1369fdaae355e8ed0ed8495c729183c7f1 (patch)
treec8d91d50a9730ff0b04602e8af19d0022f1e18ac
parentUse test values (diff)
downloadlibdbpp-45cd6e1369fdaae355e8ed0ed8495c729183c7f1.tar.bz2
libdbpp-45cd6e1369fdaae355e8ed0ed8495c729183c7f1.tar.xz
libdbpp-45cd6e1369fdaae355e8ed0ed8495c729183c7f1.zip
Const test variables
-rw-r--r--libdbpp/unittests/testMock.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdbpp/unittests/testMock.cpp b/libdbpp/unittests/testMock.cpp
index 41c640d..362b984 100644
--- a/libdbpp/unittests/testMock.cpp
+++ b/libdbpp/unittests/testMock.cpp
@@ -14,13 +14,13 @@ BOOST_AUTO_TEST_CASE(noFactory)
BOOST_AUTO_TEST_CASE(mockFactory)
{
- auto f = DB::MockDatabaseFactory::get("MockMock");
+ const auto f = DB::MockDatabaseFactory::get("MockMock");
BOOST_REQUIRE(f);
- auto m = f->create("", typeid(this).name(), {});
+ const auto m = f->create("", typeid(this).name(), {});
BOOST_REQUIRE(m);
- auto c = m->openConnection();
+ const auto c = m->openConnection();
BOOST_REQUIRE(c);
- auto & cr = *c;
+ const auto & cr = *c;
BOOST_REQUIRE_EQUAL(typeid(MockDb), typeid(cr));
}