()
| 1284 | |
| 1285 | #[test] |
| 1286 | fn test_session_manager() { |
| 1287 | let mut manager = SessionManager::new(); |
| 1288 | |
| 1289 | let session = manager.create("project-1", "/path/to/project"); |
| 1290 | assert!(manager.get(&session.id).is_some()); |
| 1291 | assert_eq!(manager.count(), 1); |
| 1292 | |
| 1293 | let child = manager.create_child(&session.id).unwrap(); |
| 1294 | assert!(child.parent_id.is_some()); |
| 1295 | |
| 1296 | manager.delete(&session.id); |
| 1297 | assert_eq!(manager.count(), 0); |
| 1298 | } |
| 1299 | |
| 1300 | #[test] |
| 1301 | fn test_fork_title() { |
nothing calls this directly
no test coverage detected