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

Method executeBlockingTwoArgOverload

tests/auto/executor/tst_executor.cpp:134–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void 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
146void tst_executor::executeBlockingConstQStringRef() {
147 // Explicitly verify that the refactored const QString & parameter

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected