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

Method insert

core/src/agent_api/tests.rs:62–67  ·  view source on GitHub ↗
(&self, path: &str, content: &str)

Source from the content-addressed store, hash-verified

60
61impl TestWorkspaceFs {
62 fn insert(&self, path: &str, content: &str) {
63 self.files
64 .write()
65 .unwrap()
66 .insert(path.to_string(), content.to_string());
67 }
68
69 fn read_raw(&self, path: &str) -> Option<String> {
70 self.files.read().unwrap().get(path).cloned()

Callers 9

applyMethod · 0.45
write_textMethod · 0.45
register_sessionFunction · 0.45
observe_agent_eventMethod · 0.45
with_capabilitiesMethod · 0.45
add_capabilityMethod · 0.45
task_metadataFunction · 0.45

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected