| 144 | } |
| 145 | |
| 146 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected