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

Method FileVersionDatabase_hashForFile

unit-tests/Utils_test.cpp:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void TestUtils::FileVersionDatabase_hashForFile()
112{
113 QByteArray zero = QByteArray::fromHex("d41d8cd98f00b204e9800998ecf8427e");
114
115 QCOMPARE(Tw::Utils::FileVersionDatabase::hashForFile(QString("does-not-exist")), zero);
116 QCOMPARE(Tw::Utils::FileVersionDatabase::hashForFile(QStringLiteral("base14-fonts.pdf")), QByteArray::fromHex("814514754a5680a57d172b6720d48a8d"));
117}
118
119void TestUtils::FileVersionDatabase_addFileRecord()
120{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected