MCPcopy Create free account
hub / github.com/FastLED/FastLED / getResult

Function getResult

tests/fl/remote/rpc_http_stream.cpp:30–35  ·  view source on GitHub ↗

Helper to extract result from JSON-RPC response

Source from the content-addressed store, hash-verified

28
29// Helper to extract result from JSON-RPC response
30static fl::optional<json> getResult(const json& response) {
31 if (!response.contains("result")) {
32 return fl::nullopt;
33 }
34 return response["result"];
35}
36
37// Helper to extract error from JSON-RPC response
38static fl::optional<json> getError(const json& response) {

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected