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

Method initTestCase

kdevplatform/vcs/tests/test_vcsdiff.cpp:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14using namespace KDevelop;
15
16void TestVcsDiff::initTestCase()
17{
18 QStandardPaths::setTestModeEnabled(true);
19 QString path = QFINDTESTDATA("sample.diff");
20 QFile in(path);
21 QCOMPARE(in.open(QIODevice::ReadOnly), true);
22 sampleDiff = QString::fromUtf8(in.readAll());
23 QCOMPARE(sampleDiff.length(), 6235);
24}
25
26void TestVcsDiff::setDiff(VcsDiff& diff,
27 const QString& diffString,

Callers

nothing calls this directly

Calls 2

openMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected