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

Source from the content-addressed store, hash-verified

362
363 #[test]
364 fn pack_roundtrips_through_the_wire() {
365 let pack = sample_pack();
366 let bytes = pack.encode().expect("encode");
367 let decoded = SyncPack::decode(&bytes).expect("decode");
368 assert_eq!(decoded, pack);
369 }
370
371 #[test]
372 fn wants_roundtrip_and_all_helper() {

Callers

nothing calls this directly

Calls 3

sample_packFunction · 0.85
decodeFunction · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected