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:351–355  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

349
350 #[test]
351 fn test_view_state_too_short() {
352 let bytes = [0u8; 4]; // Too short
353 let result = deserialize_view_state(&bytes);
354 assert!(result.is_err());
355 }
356
357 #[test]
358 fn test_view_state_truncated() {

Callers

nothing calls this directly

Calls 1

deserialize_view_stateFunction · 0.85

Tested by

no test coverage detected