Fix new warnings.
GitOrigin-RevId: 4aaaf8046d307c72d61325abeecbad2051a46673
This commit is contained in:
parent
5c53ea34f8
commit
34bfa6af75
@ -136,7 +136,7 @@ TEST(DB, sqlite_encryption) {
|
|||||||
auto db = SqliteDb::open_with_key(path, empty).move_as_ok();
|
auto db = SqliteDb::open_with_key(path, empty).move_as_ok();
|
||||||
db.set_user_version(123);
|
db.set_user_version(123);
|
||||||
auto kv = SqliteKeyValue();
|
auto kv = SqliteKeyValue();
|
||||||
kv.init_with_connection(db.clone(), "kv");
|
kv.init_with_connection(db.clone(), "kv").ensure();
|
||||||
kv.set("a", "b");
|
kv.set("a", "b");
|
||||||
}
|
}
|
||||||
SqliteDb::open_with_key(path, cucumber).ensure_error(); // key was set...
|
SqliteDb::open_with_key(path, cucumber).ensure_error(); // key was set...
|
||||||
@ -147,7 +147,7 @@ TEST(DB, sqlite_encryption) {
|
|||||||
{
|
{
|
||||||
auto db = SqliteDb::open_with_key(path, cucumber).move_as_ok();
|
auto db = SqliteDb::open_with_key(path, cucumber).move_as_ok();
|
||||||
auto kv = SqliteKeyValue();
|
auto kv = SqliteKeyValue();
|
||||||
kv.init_with_connection(db.clone(), "kv");
|
kv.init_with_connection(db.clone(), "kv").ensure();
|
||||||
CHECK(kv.get("a") == "b");
|
CHECK(kv.get("a") == "b");
|
||||||
CHECK(db.user_version().ok() == 123);
|
CHECK(db.user_version().ok() == 123);
|
||||||
}
|
}
|
||||||
@ -159,7 +159,7 @@ TEST(DB, sqlite_encryption) {
|
|||||||
{
|
{
|
||||||
auto db = SqliteDb::open_with_key(path, tomato).move_as_ok();
|
auto db = SqliteDb::open_with_key(path, tomato).move_as_ok();
|
||||||
auto kv = SqliteKeyValue();
|
auto kv = SqliteKeyValue();
|
||||||
kv.init_with_connection(db.clone(), "kv");
|
kv.init_with_connection(db.clone(), "kv").ensure();
|
||||||
CHECK(kv.get("a") == "b");
|
CHECK(kv.get("a") == "b");
|
||||||
CHECK(db.user_version().ok() == 123);
|
CHECK(db.user_version().ok() == 123);
|
||||||
}
|
}
|
||||||
@ -170,7 +170,7 @@ TEST(DB, sqlite_encryption) {
|
|||||||
{
|
{
|
||||||
auto db = SqliteDb::open_with_key(path, empty).move_as_ok();
|
auto db = SqliteDb::open_with_key(path, empty).move_as_ok();
|
||||||
auto kv = SqliteKeyValue();
|
auto kv = SqliteKeyValue();
|
||||||
kv.init_with_connection(db.clone(), "kv");
|
kv.init_with_connection(db.clone(), "kv").ensure();
|
||||||
CHECK(kv.get("a") == "b");
|
CHECK(kv.get("a") == "b");
|
||||||
CHECK(db.user_version().ok() == 123);
|
CHECK(db.user_version().ok() == 123);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user