| 30 | } |
| 31 | |
| 32 | FunctionCallResolution FunctionCallResolution::createCompleted(const std::string& requestId, const nlohmann::json& value) { |
| 33 | FunctionCallResolution result; |
| 34 | result._status = FunctionCallStatus::Completed; |
| 35 | result._requestId = requestId; |
| 36 | result._value = value; |
| 37 | return result; |
| 38 | } |
| 39 | |
| 40 | FunctionCallResolution FunctionCallResolution::fromPlatformResult(const FunctionCallResult& platformResult) { |
| 41 | if (platformResult.status == FunctionCallStatus::Error) { |
nothing calls this directly
no outgoing calls
no test coverage detected