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

Method reencryptPathNormalization

tests/auto/util/tst_util.cpp:1531–1542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1529}
1530
1531void tst_util::reencryptPathNormalization() {
1532 QTemporaryDir tempDir;
1533 QVERIFY2(tempDir.isValid(), "Temporary directory should be created");
1534
1535 QString basePath = tempDir.path();
1536 QString withExtraSlashes = basePath + "/./subdir/../";
1537 QString cleaned = QDir::cleanPath(withExtraSlashes);
1538 QString normalized = QDir::cleanPath(basePath);
1539 QVERIFY2(cleaned == normalized,
1540 qPrintable(QString("cleanPath should normalize: expected %1, got %2")
1541 .arg(normalized, cleaned)));
1542}
1543
1544void tst_util::reencryptPathAbsolutePath() {
1545 QTemporaryDir tempDir;

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.80

Tested by

no test coverage detected