MCPcopy Create free account
hub / github.com/TeXworks/texworks / absoluteFilePath

Method absoluteFilePath

unit-tests/Document_test.cpp:215–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void TestDocument::absoluteFilePath()
216{
217 Tw::Document::TextDocument doc;
218 QFileInfo fi(QStringLiteral("base14-fonts.pdf"));
219
220 QCOMPARE(doc.absoluteFilePath(), QString());
221 doc.setFileInfo(fi);
222 QCOMPARE(doc.absoluteFilePath(), fi.absoluteFilePath());
223}
224
225void TestDocument::tags()
226{

Callers 3

foreachFunction · 0.45
rootFile_dataMethod · 0.45

Calls 1

setFileInfoMethod · 0.80

Tested by

no test coverage detected