MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_view_state_too_short

Function test_view_state_too_short

atomic-core/src/pristine/txn/helpers.rs:370–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368
369 #[test]
370 fn test_view_state_too_short() {
371 let bytes = [0u8; 4]; // Too short
372 let result = deserialize_view_state(&bytes);
373 assert!(result.is_err());
374 }
375
376 #[test]
377 fn test_view_state_truncated() {

Callers

nothing calls this directly

Calls 1

deserialize_view_stateFunction · 0.85

Tested by

no test coverage detected