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

Function test_unhashed_new

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

Source from the content-addressed store, hash-verified

459
460#[test]
461fn test_unhashed_new() {
462 let entries = vec![
463 CondensedEntry::user("Hello"),
464 CondensedEntry::tool("Edit", Some("a.rs")),
465 ];
466 let data = UnhashedTurnData::new("sess-1", 3, "jsonl", entries, &["a.rs".into()]);
467
468 assert_eq!(data.session_id, "sess-1");
469 assert_eq!(data.turn_number, 3);
470 assert_eq!(data.transcript_format, "jsonl");
471 assert_eq!(data.entry_count(), 2);
472 assert_eq!(data.prompts, vec!["Hello"]);
473 assert_eq!(data.tools_used.len(), 1);
474 assert!(!data.has_reasoning());
475 assert!(!data.is_redacted());
476}
477
478#[test]
479fn test_unhashed_with_reasoning() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected