MCPcopy Create free account
hub / github.com/IJHack/QtPass / reencryptPathAbsolutePath

Method reencryptPathAbsolutePath

tests/auto/util/tst_util.cpp:1544–1558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1542}
1543
1544void tst_util::reencryptPathAbsolutePath() {
1545 QTemporaryDir tempDir;
1546 QVERIFY2(tempDir.isValid(), "Temporary directory should be created");
1547
1548 QString tempPath = tempDir.path();
1549 QVERIFY(QDir(tempPath).mkdir("testdir"));
1550 QString relativePathFromTemp = tempPath + "/testdir";
1551 QDir dir;
1552 QString result = QDir::cleanPath(QDir(relativePathFromTemp).absolutePath());
1553 QString expected = QDir::cleanPath(tempPath + "/testdir");
1554 QVERIFY2(
1555 result == expected,
1556 qPrintable(
1557 QString("Absolute path: expected %1, got %2").arg(expected, result)));
1558}
1559
1560// Tests targeting the const-ref refactor of findBinaryInPath.
1561// The PR changed the signature from findBinaryInPath(QString) to

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.80

Tested by

no test coverage detected