MCPcopy Create free account
hub / github.com/MultiMC/Launcher / test_pathCombine

Method test_pathCombine

launcher/FileSystem_test.cpp:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16private
17slots:
18 void test_pathCombine()
19 {
20 QCOMPARE(QString("/foo/foo"), FS::PathCombine(bothSlash, bothSlash));
21 QCOMPARE(QString("foo/foo"), FS::PathCombine(trailingSlash, trailingSlash));
22 QCOMPARE(QString("/foo/foo"), FS::PathCombine(leadingSlash, leadingSlash));
23
24 QCOMPARE(QString("/foo/foo/foo"), FS::PathCombine(bothSlash, bothSlash, bothSlash));
25 QCOMPARE(QString("foo/foo/foo"), FS::PathCombine(trailingSlash, trailingSlash, trailingSlash));
26 QCOMPARE(QString("/foo/foo/foo"), FS::PathCombine(leadingSlash, leadingSlash, leadingSlash));
27 }
28
29 void test_PathCombine1_data()
30 {

Callers

nothing calls this directly

Calls 2

QStringClass · 0.85
PathCombineFunction · 0.85

Tested by

no test coverage detected