()
| 1263 | |
| 1264 | #[test] |
| 1265 | fn test_child_session() { |
| 1266 | let parent = Session::new("project-1", "/path/to/project"); |
| 1267 | let child = Session::child(&parent); |
| 1268 | |
| 1269 | assert!(child.parent_id.is_some()); |
| 1270 | assert_eq!(child.parent_id.unwrap(), parent.id); |
| 1271 | assert!(child.title.starts_with("Child session")); |
| 1272 | } |
| 1273 | |
| 1274 | #[test] |
| 1275 | fn test_add_messages() { |