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

Method TestFile

kdevplatform/tests/testfile.cpp:78–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76};
77
78TestFile::TestFile(const QString& contents, const QString& fileExtension,
79 TestProject* project, const QString& dir)
80 : d_ptr(new TestFilePrivate())
81{
82 Q_D(TestFile);
83
84 d->suffix = QLatin1Char('.') + fileExtension;
85
86 QTemporaryFile file((!dir.isEmpty() ? dir : QDir::tempPath()) + QLatin1String("/testfile_XXXXXX") + d->suffix);
87 file.setAutoRemove(false);
88 file.open();
89 Q_ASSERT(file.isOpen());
90
91 d->init(file.fileName(), contents, project);
92}
93
94TestFile::TestFile(const QString& contents, const QString& fileExtension, const TestFile* base)
95 : d_ptr(new TestFilePrivate)

Callers

nothing calls this directly

Calls 7

midMethod · 0.80
d_funcMethod · 0.80
isEmptyMethod · 0.45
openMethod · 0.45
initMethod · 0.45
fileNameMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected