Method
read_text
(&self, path: &WorkspacePath)
Source from the content-addressed store, hash-verified
| 37 | #[async_trait] |
| 38 | impl 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
Tested by
no test coverage detected