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

Function test_postcard_is_compact

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

Source from the content-addressed store, hash-verified

652
653 #[test]
654 fn test_postcard_is_compact() {
655 // Verify that postcard produces reasonably compact output.
656 // An IntentEntry with short strings should fit in well under 200 bytes.
657 let entry = sample_intent_entry();
658 let bytes = entry.to_bytes();
659
660 assert!(
661 bytes.len() < 200,
662 "expected compact serialization, got {} bytes",
663 bytes.len()
664 );
665 }
666}

Callers

nothing calls this directly

Calls 2

sample_intent_entryFunction · 0.85
to_bytesMethod · 0.45

Tested by

no test coverage detected