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

Method system

unit-tests/MockScriptingAPI.h:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 QString platform() const override { return QString(); }
64 int getQtVersion() const override { return QT_VERSION; }
65 QMap<QString, QVariant> system(const QString& cmdline, bool waitForResult = true) override {
66 Q_UNUSED(cmdline);
67 Q_UNUSED(waitForResult);
68 return {
69 {QStringLiteral("status"), ScriptAPIInterface::SystemAccess_Failed},
70 {QStringLiteral("result"), 0},
71 {QStringLiteral("message"), QStringLiteral("This is only a MockAPI")},
72 {QStringLiteral("output"), QString()}
73 };
74 }
75 QMap<QString, QVariant> launchFile(const QString& fileName) const override {
76 Q_UNUSED(fileName);
77 return {

Callers 1

mocksMethod · 0.45

Calls

no outgoing calls

Tested by 1

mocksMethod · 0.36