MCPcopy
hub / github.com/foambubble/foam / set

Method set

packages/foam-core/test/test-utils.ts:25–27  ·  view source on GitHub ↗

* Sync helper for test setup — populate without going through the async API.

(uri: URI, content: string)

Source from the content-addressed store, hash-verified

23 * Sync helper for test setup — populate without going through the async API.
24 */
25 set(uri: URI, content: string): void {
26 this.files.set(uri.path, content);
27 }
28
29 /**
30 * Sync helper to clear all files.

Callers 3

withMcpServerFunction · 0.95
makeWorkspaceFunction · 0.95
makeWorkspaceFunction · 0.95

Calls 1

setMethod · 0.65

Tested by 2

makeWorkspaceFunction · 0.76
makeWorkspaceFunction · 0.76