()
| 1254 | |
| 1255 | #[test] |
| 1256 | fn test_session_creation() { |
| 1257 | let session = Session::new("project-1", "/path/to/project"); |
| 1258 | assert!(session.id.starts_with("ses_")); |
| 1259 | assert!(session.title.starts_with("New session")); |
| 1260 | assert!(session.parent_id.is_none()); |
| 1261 | assert_eq!(session.status, SessionStatus::Active); |
| 1262 | } |
| 1263 | |
| 1264 | #[test] |
| 1265 | fn test_child_session() { |