MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / test_child_session

Function test_child_session

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected