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

Function test_decode_empty_frame

plugins/lsps-plugin/src/proto/lsps0.rs:245–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243
244 #[test]
245 fn test_decode_empty_frame() {
246 let result = decode_frame(&[]);
247 assert!(matches!(result, Err(Error::TooShort(0))));
248 }
249
250 #[test]
251 fn test_decode_single_byte_frame() {

Callers

nothing calls this directly

Calls 1

decode_frameFunction · 0.85

Tested by

no test coverage detected