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

Function test_protocols_deduped

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

Source from the content-addressed store, hash-verified

113
114 #[test]
115 fn test_protocols_deduped() {
116 let service = LspsService::builder()
117 .with_protocol(MockProtocol(2))
118 .with_protocol(MockProtocol(2))
119 .build();
120
121 assert_eq!(service.protocols(), &[2]);
122 }
123
124 #[test]
125 fn test_protocol_zero_filtered() {

Callers

nothing calls this directly

Calls 3

MockProtocolClass · 0.85
with_protocolMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected