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

Function test_context

plugins/lsps-plugin/src/core/server.rs:82–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 use super::*;
81
82 fn test_context() -> RequestContext {
83 RequestContext {
84 peer_id: "0279BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798"
85 .parse()
86 .unwrap(),
87 }
88 }
89
90 // Minimal mock - just tracks protocol number
91 struct MockProtocol(u8);

Calls 2

parseMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected