()
| 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() { |
nothing calls this directly
no test coverage detected