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

Function test_share_unshare

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

Source from the content-addressed store, hash-verified

1380
1381 #[test]
1382 fn test_share_unshare() {
1383 let mut session = Session::new("project-1", "/path");
1384
1385 session.share_session("https://example.com/share/123");
1386 assert!(session.share.is_some());
1387 assert_eq!(
1388 session.share.as_ref().unwrap().url,
1389 "https://example.com/share/123"
1390 );
1391
1392 session.unshare_session();
1393 assert!(session.share.is_none());
1394 }
1395
1396 #[test]
1397 fn test_get_usage_empty() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
share_sessionMethod · 0.45
unshare_sessionMethod · 0.45

Tested by

no test coverage detected