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

Function test_db_write_hook

cln-rpc/src/test.rs:373–384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

371
372#[test]
373fn test_db_write_hook() {
374 let r = serde_json::json!({
375 "data_version": 42,
376 "writes": [
377 "PRAGMA foreign_keys = ON"
378 ]
379 });
380 let d: DbWriteEvent = serde_json::from_value(r).unwrap();
381 assert_eq!(d.data_version, 42);
382 assert_eq!(d.writes, vec!["PRAGMA foreign_keys = ON"]);
383 assert_serde_roundtrip!(d, DbWriteEvent);
384}
385
386#[test]
387fn test_invoice_payment_hook() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected