summaryrefslogtreecommitdiff
path: root/test/test-mysql.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-06-12 20:31:17 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-06-12 20:31:17 +0100
commit5c9443849dd33e91690369f8194ac0cd725f23ec (patch)
treec0495ffb12436a4535d2a15e375826a15c744883 /test/test-mysql.cpp
parentAvoid direct use of runtime_error in MySQL stuff (diff)
downloadmygrate-5c9443849dd33e91690369f8194ac0cd725f23ec.tar.bz2
mygrate-5c9443849dd33e91690369f8194ac0cd725f23ec.tar.xz
mygrate-5c9443849dd33e91690369f8194ac0cd725f23ec.zip
Create a basic MySQL testing database class
Diffstat (limited to 'test/test-mysql.cpp')
-rw-r--r--test/test-mysql.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test-mysql.cpp b/test/test-mysql.cpp
index d91f54e..954a121 100644
--- a/test/test-mysql.cpp
+++ b/test/test-mysql.cpp
@@ -1,6 +1,7 @@
#define BOOST_TEST_MODULE MySQL
#include <boost/test/unit_test.hpp>
+#include "testdb-mysql.h"
#include <cstdint>
#include <cstdlib>
#include <dbConn.h>
@@ -60,3 +61,8 @@ BOOST_AUTO_TEST_CASE(stmt)
BOOST_CHECK(std::get<std::string_view>(rs->at(0, 0)).starts_with("mariadb"));
BOOST_CHECK_GE(std::get<int64_t>(rs->at(0, 1)), 4);
}
+
+BOOST_AUTO_TEST_CASE(mock)
+{
+ MyGrate::Testing::MySQLDB db;
+}