()
| 459 | |
| 460 | #[test] |
| 461 | fn 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] |
| 479 | fn test_unhashed_with_reasoning() { |
nothing calls this directly
no outgoing calls
no test coverage detected