void testFileRecord()
{
SyncJournalFileRecord record;
- QVERIFY(_db.getFileRecord(QByteArrayLiteral("nonexistant"), &record));
+ QVERIFY(_db.getFileRecord(QByteArrayLiteral("nonexistent"), &record));
QVERIFY(!record.isValid());
record._path = "foo";
void testDownloadInfo()
{
using Info = SyncJournalDb::DownloadInfo;
- Info record = _db.getDownloadInfo("nonexistant");
+ Info record = _db.getDownloadInfo("nonexistent");
QVERIFY(!record._valid);
record._errorCount = 5;
void testUploadInfo()
{
using Info = SyncJournalDb::UploadInfo;
- Info record = _db.getUploadInfo("nonexistant");
+ Info record = _db.getUploadInfo("nonexistent");
QVERIFY(!record._valid);
record._errorCount = 5;
QCOMPARE(get("local"), PinState::AlwaysLocal);
QCOMPARE(get("online"), PinState::OnlineOnly);
QCOMPARE(get("inherit"), PinState::AlwaysLocal);
- QCOMPARE(get("nonexistant"), PinState::AlwaysLocal);
+ QCOMPARE(get("nonexistent"), PinState::AlwaysLocal);
QCOMPARE(get("online/local"), PinState::AlwaysLocal);
QCOMPARE(get("local/online"), PinState::OnlineOnly);
QCOMPARE(get("inherit/local"), PinState::AlwaysLocal);
QCOMPARE(get("inherit/online"), PinState::OnlineOnly);
QCOMPARE(get("inherit/inherit"), PinState::AlwaysLocal);
- QCOMPARE(get("inherit/nonexistant"), PinState::AlwaysLocal);
+ QCOMPARE(get("inherit/nonexistent"), PinState::AlwaysLocal);
// Inheriting checks, level 1
QCOMPARE(get("local/inherit"), PinState::AlwaysLocal);
- QCOMPARE(get("local/nonexistant"), PinState::AlwaysLocal);
+ QCOMPARE(get("local/nonexistent"), PinState::AlwaysLocal);
QCOMPARE(get("online/inherit"), PinState::OnlineOnly);
- QCOMPARE(get("online/nonexistant"), PinState::OnlineOnly);
+ QCOMPARE(get("online/nonexistent"), PinState::OnlineOnly);
// Inheriting checks, level 2
QCOMPARE(get("local/inherit/inherit"), PinState::AlwaysLocal);
QCOMPARE(get("local/local/inherit"), PinState::AlwaysLocal);
- QCOMPARE(get("local/local/nonexistant"), PinState::AlwaysLocal);
+ QCOMPARE(get("local/local/nonexistent"), PinState::AlwaysLocal);
QCOMPARE(get("local/online/inherit"), PinState::OnlineOnly);
- QCOMPARE(get("local/online/nonexistant"), PinState::OnlineOnly);
+ QCOMPARE(get("local/online/nonexistent"), PinState::OnlineOnly);
QCOMPARE(get("online/inherit/inherit"), PinState::OnlineOnly);
QCOMPARE(get("online/local/inherit"), PinState::AlwaysLocal);
- QCOMPARE(get("online/local/nonexistant"), PinState::AlwaysLocal);
+ QCOMPARE(get("online/local/nonexistent"), PinState::AlwaysLocal);
QCOMPARE(get("online/online/inherit"), PinState::OnlineOnly);
- QCOMPARE(get("online/online/nonexistant"), PinState::OnlineOnly);
+ QCOMPARE(get("online/online/nonexistent"), PinState::OnlineOnly);
// Spot check the recursive variant
QCOMPARE(getRecursive(""), PinState::Inherited);
QCOMPARE(get("local"), PinState::AlwaysLocal);
QCOMPARE(get("online"), PinState::OnlineOnly);
QCOMPARE(get("inherit"), PinState::OnlineOnly);
- QCOMPARE(get("nonexistant"), PinState::OnlineOnly);
+ QCOMPARE(get("nonexistent"), PinState::OnlineOnly);
make("", PinState::AlwaysLocal);
QCOMPARE(get("local"), PinState::AlwaysLocal);
QCOMPARE(get("online"), PinState::OnlineOnly);
QCOMPARE(get("inherit"), PinState::AlwaysLocal);
- QCOMPARE(get("nonexistant"), PinState::AlwaysLocal);
+ QCOMPARE(get("nonexistent"), PinState::AlwaysLocal);
// Wiping
QCOMPARE(getRaw("local/local"), PinState::AlwaysLocal);