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

Function test_postcard_is_compact

atomic-core/src/change/session.rs:893–904  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

891
892 #[test]
893 fn test_postcard_is_compact() {
894 // Verify that postcard produces reasonably compact output.
895 // An IntentEntry with short strings should fit in well under 200 bytes.
896 let entry = sample_intent_entry();
897 let bytes = entry.to_bytes();
898
899 assert!(
900 bytes.len() < 200,
901 "expected compact serialization, got {} bytes",
902 bytes.len()
903 );
904 }
905
906 #[test]
907 fn test_session_record_roundtrip() {

Callers

nothing calls this directly

Calls 2

sample_intent_entryFunction · 0.85
to_bytesMethod · 0.45

Tested by

no test coverage detected