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

Function test_protocols_sorted

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

Source from the content-addressed store, hash-verified

102
103 #[test]
104 fn test_protocols_sorted() {
105 let service = LspsService::builder()
106 .with_protocol(MockProtocol(5))
107 .with_protocol(MockProtocol(1))
108 .with_protocol(MockProtocol(2))
109 .build();
110
111 assert_eq!(service.protocols(), &[1, 2, 5]);
112 }
113
114 #[test]
115 fn test_protocols_deduped() {

Callers

nothing calls this directly

Calls 3

MockProtocolClass · 0.85
with_protocolMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected