| 52 | }; |
| 53 | |
| 54 | UniValue RPCTestingSetup::TransformParams(const UniValue& params, std::vector<std::pair<std::string, bool>> arg_names) const |
| 55 | { |
| 56 | UniValue transformed_params; |
| 57 | CRPCTable table; |
| 58 | CRPCCommand command{"category", "method", [&](const JSONRPCRequest& request, UniValue&, bool) -> bool { transformed_params = request.params; return true; }, arg_names, /*unique_id=*/0}; |
| 59 | table.appendCommand("method", &command); |
| 60 | JSONRPCRequest request; |
| 61 | request.strMethod = "method"; |
| 62 | request.params = params; |
| 63 | if (RPCIsInWarmup(nullptr)) SetRPCWarmupFinished(); |
| 64 | table.execute(request); |
| 65 | return transformed_params; |
| 66 | } |
| 67 | |
| 68 | UniValue RPCTestingSetup::CallRPC(std::string args) |
| 69 | { |
nothing calls this directly
no test coverage detected