()
| 594 | |
| 595 | #[test] |
| 596 | fn test_todo_snapshot_roundtrip() { |
| 597 | let original = sample_todo_snapshot(); |
| 598 | let bytes = original.to_bytes(); |
| 599 | let recovered = TodoSnapshot::from_bytes(&bytes).unwrap(); |
| 600 | |
| 601 | assert_eq!(original, recovered); |
| 602 | assert_eq!(recovered.todo_id, "todo-001"); |
| 603 | assert_eq!(recovered.file, Some("src/auth/token.rs".into())); |
| 604 | assert_eq!(recovered.start_line, Some(42)); |
| 605 | assert_eq!(recovered.end_line, Some(87)); |
| 606 | assert_eq!(recovered.completed_at, Some("2025-01-15T10:32:15Z".into())); |
| 607 | } |
| 608 | |
| 609 | #[test] |
| 610 | fn test_phase_timing_entry_roundtrip() { |
nothing calls this directly
no test coverage detected