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

Method fileContents

kdevplatform/tests/testfile.cpp:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196QString TestFile::fileContents() const
197{
198 Q_D(const TestFile);
199
200 QFile file(d->file);
201 file.open(QIODevice::ReadOnly);
202 Q_ASSERT(file.isOpen());
203 Q_ASSERT(file.isReadable());
204 return QString::fromUtf8(file.readAll());
205}
206
207void TestFile::setKeepDUChainData(bool keep)
208{

Callers 6

testReplaceSameLineMethod · 0.80
testClassRenameMethod · 0.80
testMoveIntoSourceMethod · 0.80
prepareCompletionFunction · 0.80

Calls 2

isReadableMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected