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

Method parseHeader

unit-tests/Scripting_test.cpp:271–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void TestScripting::parseHeader()
272{
273 QFETCH(QSharedPointer<Script>, script);
274 QFETCH(bool, canParse);
275 QFETCH(Script::ScriptType, type);
276 QFETCH(QString, title);
277 QFETCH(QString, description);
278 QFETCH(QString, author);
279 QFETCH(QString, version);
280 QFETCH(QString, hook);
281 QFETCH(QString, context);
282 QFETCH(QKeySequence, keySequence);
283
284 QCOMPARE(script->parseHeader(), canParse);
285
286 QCOMPARE(script->getType(), type);
287 QCOMPARE(script->getTitle(), title);
288 QCOMPARE(script->getDescription(), description);
289 QCOMPARE(script->getAuthor(), author);
290 QCOMPARE(script->getVersion(), version);
291 QCOMPARE(script->getKeySequence(), keySequence);
292 QCOMPARE(script->getHook(), hook);
293 QCOMPARE(script->getContext(), context);
294}
295
296void TestScripting::mocks()
297{

Callers

nothing calls this directly

Calls 8

getTitleMethod · 0.80
getDescriptionMethod · 0.80
getAuthorMethod · 0.80
getKeySequenceMethod · 0.80
getHookMethod · 0.80
getContextMethod · 0.80
getTypeMethod · 0.45
getVersionMethod · 0.45

Tested by

no test coverage detected