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

Method insert

core/tests/test_workspace_backend.rs:25–30  ·  view source on GitHub ↗
(&self, path: &str, content: &str)

Source from the content-addressed store, hash-verified

23
24impl MemoryWorkspace {
25 fn insert(&self, path: &str, content: &str) {
26 self.files
27 .write()
28 .unwrap()
29 .insert(path.to_string(), content.to_string());
30 }
31
32 fn read_raw(&self, path: &str) -> Option<String> {
33 self.files.read().unwrap().get(path).cloned()

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected