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

Function test_minimal_roundtrip

atomic-core/src/change/attestation.rs:1565–1572  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1563
1564 #[test]
1565 fn test_minimal_roundtrip() {
1566 let a = Attestation::builder("s", make_agent()).timestamp(0).build();
1567 let bytes = a.serialize().unwrap();
1568 let (loaded, _) = Attestation::deserialize(&bytes).unwrap();
1569 assert_eq!(loaded.session_id, "s");
1570 assert!(loaded.models.is_empty());
1571 assert!(loaded.changes_covered.is_empty());
1572 }
1573
1574 #[test]
1575 fn test_write_read_roundtrip() {

Callers

nothing calls this directly

Calls 6

make_agentFunction · 0.85
deserializeFunction · 0.50
buildMethod · 0.45
timestampMethod · 0.45
unwrapMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected