MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/core/lib/db/sqlite_test.cc:247–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247TEST(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
257TEST_F(SqliteTest, TransactionRollback) {
258 {

Callers

nothing calls this directly

Calls 4

PrepareOrDieMethod · 0.80
BindIntMethod · 0.80
ColumnIntMethod · 0.80
UnrefMethod · 0.45

Tested by

no test coverage detected