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

Function test_entry_serde_roundtrip

atomic-agent/src/transcript/tests.rs:62–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61#[test]
62fn test_entry_serde_roundtrip() {
63 let entries = vec![
64 CondensedEntry::user("prompt"),
65 CondensedEntry::assistant("response"),
66 CondensedEntry::tool("Edit", Some("file.rs")),
67 ];
68 let json = serde_json::to_string(&entries).unwrap();
69 let parsed: Vec<CondensedEntry> = serde_json::from_str(&json).unwrap();
70 assert_eq!(entries, parsed);
71}
72
73// Transcript parsing (Claude Code JSONL)
74

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected