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

Method readFile

unit-tests/MockScriptingAPI.h:88–95  ·  view source on GitHub ↗

Content is read in text-mode in utf8 encoding

Source from the content-addressed store, hash-verified

86 }
87 // Content is read in text-mode in utf8 encoding
88 QMap<QString, QVariant> readFile(const QString& filename) const override {
89 Q_UNUSED(filename);
90 return {
91 {QStringLiteral("status"), ScriptAPIInterface::SystemAccess_Failed},
92 {QStringLiteral("result"), QString()},
93 {QStringLiteral("message"), QStringLiteral("This is only a MockAPI")},
94 };
95 }
96 int fileExists(const QString& filename) const override {
97 Q_UNUSED(filename);
98 return ScriptAPIInterface::SystemAccess_Failed;

Callers 1

mocksMethod · 0.45

Calls

no outgoing calls

Tested by 1

mocksMethod · 0.36