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

Function test_session_creation

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected