MCPcopy Create free account
hub / github.com/PrismLauncher/PrismLauncher / test_pathCombine

Method test_pathCombine

tests/FileSystem_test.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83 private slots:
84 void test_pathCombine()
85 {
86 QCOMPARE(QString("/foo/foo"), FS::PathCombine(bothSlash, bothSlash));
87 QCOMPARE(QString("foo/foo"), FS::PathCombine(trailingSlash, trailingSlash));
88 QCOMPARE(QString("/foo/foo"), FS::PathCombine(leadingSlash, leadingSlash));
89
90 QCOMPARE(QString("/foo/foo/foo"), FS::PathCombine(bothSlash, bothSlash, bothSlash));
91 QCOMPARE(QString("foo/foo/foo"), FS::PathCombine(trailingSlash, trailingSlash, trailingSlash));
92 QCOMPARE(QString("/foo/foo/foo"), FS::PathCombine(leadingSlash, leadingSlash, leadingSlash));
93 }
94
95 void test_PathCombine1_data()
96 {

Callers

nothing calls this directly

Calls 2

PathCombineFunction · 0.85
QStringClass · 0.50

Tested by

no test coverage detected