MCPcopy Create free account
hub / github.com/IJHack/QtPass / executeBlockingConstQStringRef

Method executeBlockingConstQStringRef

tests/auto/executor/tst_executor.cpp:146–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void tst_executor::executeBlockingConstQStringRef() {
147 // Explicitly verify that the refactored const QString & parameter
148 // accepts a const-qualified variable without copies or issues.
149 const QString app = QStringLiteral("echo");
150 const QStringList args = {QStringLiteral("const-ref-ok")};
151 QString output;
152 const int result = Executor::executeBlocking(app, args, QString(), &output);
153 QVERIFY2(result == 0, "const QString& app should be accepted");
154 QVERIFY2(output.contains("const-ref-ok"),
155 "output should contain 'const-ref-ok'");
156}
157
158#endif
159

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected