[Unit Test] SQLite mini-ORM unit tests and cleanup #14
This commit is contained in:
parent
c4d7868381
commit
bf9d6157f5
@ -154,6 +154,8 @@ TEST_F(database_test, insert_select_delete) {
|
||||
|
||||
{
|
||||
auto query = db::db_select{*db3.get(), "table"};
|
||||
std::cout << query.query_str() << std::endl;
|
||||
|
||||
auto res = query.go();
|
||||
EXPECT_TRUE(res.ok());
|
||||
EXPECT_TRUE(res.has_row());
|
||||
@ -216,6 +218,7 @@ TEST_F(database_test, insert_update_delete) {
|
||||
.column_value("column1", "moose")
|
||||
.where("column1")
|
||||
.equals("test0");
|
||||
std::cout << query.query_str() << std::endl;
|
||||
auto res = query.go();
|
||||
EXPECT_TRUE(res.ok());
|
||||
}
|
||||
@ -284,6 +287,7 @@ TEST_F(database_test, insert_or_replace_and_delete) {
|
||||
.or_replace()
|
||||
.column_value("column1", "test0")
|
||||
.column_value("column2", "moose");
|
||||
std::cout << query.query_str() << std::endl;
|
||||
auto res = query.go();
|
||||
EXPECT_TRUE(res.ok());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user