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

Method test_pathCombine

tests/FileSystem_test.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

QStringClass · 0.85
PathCombineFunction · 0.85

Tested by

no test coverage detected