()
| 342 | |
| 343 | #[test] |
| 344 | fn test_intent_entry_roundtrip() { |
| 345 | let original = sample_intent_entry(); |
| 346 | let bytes = original.to_bytes(); |
| 347 | let recovered = IntentEntry::from_bytes(&bytes).unwrap(); |
| 348 | |
| 349 | assert_eq!(original, recovered); |
| 350 | assert_eq!(recovered.title, "Fix authentication bug"); |
| 351 | assert_eq!(recovered.turn_id, 3); |
| 352 | assert_eq!(recovered.total_tokens, 15420); |
| 353 | assert!((recovered.total_cost_usd - 0.0462).abs() < f64::EPSILON); |
| 354 | } |
| 355 | |
| 356 | #[test] |
| 357 | fn test_todo_snapshot_roundtrip() { |
nothing calls this directly
no test coverage detected