* @brief Returns true when a dry-run reply succeeded at both envelope and inner-result level. */
| 1037 | * @brief Returns true when a dry-run reply succeeded at both envelope and inner-result level. |
| 1038 | */ |
| 1039 | static 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. |
no test coverage detected