| 132 | } |
| 133 | |
| 134 | void tst_executor::executeBlockingTwoArgOverload() { |
| 135 | // The two-argument overload (app, args, out, err) delegates to the |
| 136 | // three-argument overload with empty input. Verify it captures stdout. |
| 137 | QString output; |
| 138 | QString err; |
| 139 | int result = |
| 140 | Executor::executeBlocking("echo", {"two-arg-overload"}, &output, &err); |
| 141 | QVERIFY2(result == 0, "echo two-arg-overload should succeed"); |
| 142 | QVERIFY2(output.contains("two-arg-overload"), |
| 143 | "output should contain 'two-arg-overload'"); |
| 144 | } |
| 145 | |
| 146 | void tst_executor::executeBlockingConstQStringRef() { |
| 147 | // Explicitly verify that the refactored const QString & parameter |
nothing calls this directly
no outgoing calls
no test coverage detected