MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / dryRunResultOk

Function dryRunResultOk

app/src/AI/ToolDispatcher.cpp:1039–1046  ·  view source on GitHub ↗

* @brief Returns true when a dry-run reply succeeded at both envelope and inner-result level. */

Source from the content-addressed store, hash-verified

1037 * @brief Returns true when a dry-run reply succeeded at both envelope and inner-result level.
1038 */
1039static bool dryRunResultOk(const QJsonObject& reply)
1040{
1041 if (!reply.value(QStringLiteral("ok")).toBool())
1042 return false;
1043
1044 const auto result = reply.value(QStringLiteral("result")).toObject();
1045 return result.isEmpty() || result.value(QStringLiteral("ok")).toBool(true);
1046}
1047
1048/**
1049 * @brief Resolves the dataset that a transform-apply call should target.

Callers 1

executeScriptApplyFunction · 0.85

Calls 2

isEmptyMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected