MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / test_pathCombine

Method test_pathCombine

tests/FileSystem_test.cpp:99–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98 private slots:
99 void test_pathCombine()
100 {
101 QCOMPARE(QString("/foo/foo"), FS::PathCombine(bothSlash, bothSlash));
102 QCOMPARE(QString("foo/foo"), FS::PathCombine(trailingSlash, trailingSlash));
103 QCOMPARE(QString("/foo/foo"), FS::PathCombine(leadingSlash, leadingSlash));
104
105 QCOMPARE(QString("/foo/foo/foo"), FS::PathCombine(bothSlash, bothSlash, bothSlash));
106 QCOMPARE(QString("foo/foo/foo"), FS::PathCombine(trailingSlash, trailingSlash, trailingSlash));
107 QCOMPARE(QString("/foo/foo/foo"), FS::PathCombine(leadingSlash, leadingSlash, leadingSlash));
108 }
109
110 void test_PathCombine1_data()
111 {

Callers

nothing calls this directly

Calls 2

QStringClass · 0.85
PathCombineFunction · 0.85

Tested by

no test coverage detected