summaryrefslogtreecommitdiff
path: root/test/test-mysql.cpp
diff options
context:
space:
mode:
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;
+}