MCPcopy Create free account
hub / github.com/wonderwhy-er/DesktopCommanderMCP / createTestFile

Function createTestFile

test/test-line-count.js:20–24  ·  view source on GitHub ↗
(name, content)

Source from the content-addressed store, hash-verified

18}
19
20async function createTestFile(name, content) {
21 const filePath = join(TEST_DIR, name);
22 await fs.writeFile(filePath, content, 'utf8');
23 return filePath;
24}
25
26function extractTotalLines(result) {
27 // Result is { content: [{ type: 'text', text: '...' }] }

Callers 1

testLineCountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected