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

Function pack_roundtrips_through_the_wire

atomic-objects/src/sync.rs:370–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368
369 #[test]
370 fn pack_roundtrips_through_the_wire() {
371 let pack = sample_pack();
372 let bytes = pack.encode().expect("encode");
373 let decoded = SyncPack::decode(&bytes).expect("decode");
374 assert_eq!(decoded, pack);
375 }
376
377 #[test]
378 fn wants_roundtrip_and_all_helper() {

Callers

nothing calls this directly

Calls 3

sample_packFunction · 0.85
decodeFunction · 0.70
encodeMethod · 0.45

Tested by

no test coverage detected