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

Method testFileNames

kdevplatform/vcs/tests/test_vcsdiff.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void TestVcsDiff::testFileNames()
47{
48 VcsDiff diff;
49 diff.setDiff(sampleDiff);
50 const QVector<VcsDiff::FilePair> expected = {
51 {"kdevplatform/vcs/vcsdiff.cpp", "kdevplatform/vcs/vcsdiff.cpp"},
52 {"kdevplatform/vcs/vcsdiff.h", "kdevplatform/vcs/vcsdiff.h"}
53 };
54 QCOMPARE(diff.fileNames(), expected);
55}
56
57void TestVcsDiff::testSubDiff()
58{

Callers

nothing calls this directly

Calls 2

fileNamesMethod · 0.80
setDiffMethod · 0.45

Tested by

no test coverage detected