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

Function versioned_services

core/src/workspace/mod.rs:1075–1081  ·  view source on GitHub ↗
(fs: Arc<InMemoryFileSystem>)

Source from the content-addressed store, hash-verified

1073 use super::conformance::InMemoryFileSystem;
1074
1075 fn versioned_services(fs: Arc<InMemoryFileSystem>) -> Arc<WorkspaceServices> {
1076 let fs_ws: Arc<dyn WorkspaceFileSystem> = fs.clone();
1077 let fs_ext: Arc<dyn WorkspaceFileSystemExt> = fs;
1078 WorkspaceServices::builder(WorkspaceRef::new("mem", "mem://ws"), fs_ws)
1079 .file_system_ext(fs_ext)
1080 .build()
1081 }
1082
1083 /// Seed a file into the mock and return its current version, so callers
1084 /// can use it as an expected value without hardcoding the version

Calls 3

file_system_extMethod · 0.80
cloneMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected