MCPcopy Create free account
hub / github.com/KDE/kdevelop / testPathSwap

Method testPathSwap

kdevplatform/util/tests/test_path.cpp:452–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void TestPath::testPathSwap()
453{
454 Path a(QStringLiteral("/foo/22/x.C"));
455 Path b(QStringLiteral("/home/bar/at.7z"));
456 QVERIFY(!(a == b));
457
458 const auto aCopy = a;
459 const auto bCopy = b;
460 QCOMPARE(aCopy, a);
461 QCOMPARE(bCopy, b);
462
463 using std::swap;
464 swap(a, b);
465 QCOMPARE(a, bCopy);
466 QCOMPARE(b, aCopy);
467}
468
469void TestPath::testPathAddData()
470{

Callers

nothing calls this directly

Calls 1

swapFunction · 0.50

Tested by

no test coverage detected