| 245 | } |
| 246 | |
| 247 | TEST(SqliteOpenTest, CloseConnectionBeforeStatement_KeepsConnectionOpen) { |
| 248 | Sqlite* db; |
| 249 | TF_ASSERT_OK(Sqlite::Open(":memory:", SQLITE_OPEN_READWRITE, &db)); |
| 250 | SqliteStatement stmt = db->PrepareOrDie("SELECT ? + ?"); |
| 251 | db->Unref(); |
| 252 | stmt.BindInt(1, 7); |
| 253 | stmt.BindInt(2, 3); |
| 254 | EXPECT_EQ(10, stmt.StepOnceOrDie().ColumnInt(0)); |
| 255 | } |
| 256 | |
| 257 | TEST_F(SqliteTest, TransactionRollback) { |
| 258 | { |
nothing calls this directly
no test coverage detected