MCPcopy Create free account
hub / github.com/AI45Lab/Code / local_workspace_backend_maps_to_rust_session_options

Function local_workspace_backend_maps_to_rust_session_options

sdk/node/src/lib.rs:6131–6143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6129
6130 #[test]
6131 fn local_workspace_backend_maps_to_rust_session_options() {
6132 let opts = js_session_options_to_rust(Some(SessionOptions {
6133 workspace_backend: Some(JsWorkspaceBackend {
6134 kind: "local".to_string(),
6135 root: Some(".".to_string()),
6136 s3: None,
6137 }),
6138 ..Default::default()
6139 }))
6140 .unwrap();
6141
6142 assert!(opts.workspace_services.is_some());
6143 }
6144
6145 #[test]
6146 fn workspace_backend_rejects_missing_local_root() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected