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

Function test_minimal_roundtrip

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

Source from the content-addressed store, hash-verified

1042
1043 #[test]
1044 fn test_minimal_roundtrip() {
1045 let a = Attestation::builder("s", make_agent()).timestamp(0).build();
1046 let bytes = a.serialize().unwrap();
1047 let (loaded, _) = Attestation::deserialize(&bytes).unwrap();
1048 assert_eq!(loaded.session_id, "s");
1049 assert!(loaded.models.is_empty());
1050 assert!(loaded.changes_covered.is_empty());
1051 }
1052
1053 #[test]
1054 fn test_write_read_roundtrip() {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected