MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / test_session_manager

Function test_session_manager

crates/opencode-session/src/session.rs:1286–1298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
create_childMethod · 0.80
createMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected