MCPcopy Index your code
hub / github.com/AI45Lab/Code / read_text

Method read_text

core/tests/test_workspace_backend.rs:39–48  ·  view source on GitHub ↗
(&self, path: &WorkspacePath)

Source from the content-addressed store, hash-verified

37#[async_trait]
38impl WorkspaceFileSystem for MemoryWorkspace {
39 async fn read_text(&self, path: &WorkspacePath) -> WorkspaceResult<String> {
40 self.files
41 .read()
42 .unwrap()
43 .get(path.as_str())
44 .cloned()
45 .ok_or_else(|| WorkspaceError::NotFound {
46 path: path.as_str().to_string(),
47 })
48 }
49
50 async fn write_text(
51 &self,

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected