MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_getinfo

Function test_getinfo

cln-grpc/src/test.rs:236–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234#[cfg(feature = "server")]
235#[test]
236fn test_getinfo() {
237 let j = json!({
238 "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518",
239 "alias": "JUNIORBEAM-2-509-ged26651-modded",
240 "color": "0266e4",
241 "num_peers": 1,
242 "num_pending_channels": 0,
243 "num_active_channels": 1,
244 "num_inactive_channels": 0,
245 "address": [],
246 "binding": [{"type": "ipv4", "address": "127.0.0.1", "port": 34143}],
247 "version": "v0.10.2-509-ged26651-modded",
248 "blockheight": 103,
249 "network": "regtest",
250 "fees_collected_msat": "0msat", "lightning-dir": "/tmp/ltests-20irp76f/test_pay_variants_1/lightning-1/regtest",
251 "our_features": {"init": "8808226aa2", "node": "80008808226aa2", "channel": "", "invoice": "024200"}});
252 let u: cln_rpc::model::responses::GetinfoResponse = serde_json::from_value(j.clone()).unwrap();
253 let _g: GetinfoResponse = u.into();
254 //let u2: cln_rpc::model::GetinfoResponse = g.into();
255 //let j2 = serde_json::to_value(u2).unwrap();
256 //assert_eq!(j, j2);
257}
258
259#[cfg(feature = "server")]
260#[test]

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected