Test helper to create JSON-RPC request
| 17 | |
| 18 | // Test helper to create JSON-RPC request |
| 19 | fl::json makeRequest(const char* method, fl::json params = fl::json::array(), int id = 1, fl::u32 timestamp = 0) { |
| 20 | fl::json req = fl::json::object(); |
| 21 | req.set("method", method); |
| 22 | req.set("params", params); |
| 23 | req.set("id", id); |
| 24 | if (timestamp > 0) { |
| 25 | req.set("timestamp", static_cast<fl::i64>(timestamp)); |
| 26 | } |
| 27 | return req; |
| 28 | } |
| 29 | |
| 30 | // Request/Response queues for testing |
| 31 | struct TestIO { |
no test coverage detected