diff options
Diffstat (limited to 'test/test-mysql.cpp')
-rw-r--r-- | test/test-mysql.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-mysql.cpp b/test/test-mysql.cpp index 954a121..e4551f0 100644 --- a/test/test-mysql.cpp +++ b/test/test-mysql.cpp @@ -65,4 +65,7 @@ BOOST_AUTO_TEST_CASE(stmt) BOOST_AUTO_TEST_CASE(mock) { MyGrate::Testing::MySQLDB db; + auto mdb = db.mock(); + auto rs = MyGrate::DbStmt<"SELECT DATABASE()">::execute(&mdb); + BOOST_CHECK_EQUAL(rs->at(0, 0).get<std::string_view>().substr(0, 13), "mygrate_test_"); } |