MCPcopy Create free account
hub / github.com/base/base / test_flashblock_decode_error_display

Function test_flashblock_decode_error_display

crates/common/flashblocks/src/error.rs:45–48  ·  view source on GitHub ↗
(#[case] error: FlashblockDecodeError)

Source from the content-addressed store, hash-verified

43 #[case::payload_too_large(FlashblockDecodeError::PayloadTooLarge { given: 2, max: 1 })]
44 #[case::utf8(FlashblockDecodeError::Utf8(String::from_utf8(vec![0xff, 0xfe]).unwrap_err()))]
45 fn test_flashblock_decode_error_display(#[case] error: FlashblockDecodeError) {
46 let display = format!("{error}");
47 assert!(!display.is_empty());
48 }
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected