MCPcopy
hub / github.com/opentrace/opentrace / nodeCSV

Function nodeCSV

ui/src/test-db.ts:180–187  ·  view source on GitHub ↗
(nodes: TestNode[])

Source from the content-addressed store, hash-verified

178const encoder = new TextEncoder();
179
180function nodeCSV(nodes: TestNode[]): Uint8Array {
181 const lines = ['id,name,properties'];
182 for (const n of nodes) {
183 const props = JSON.stringify(n.properties ?? {});
184 lines.push([n.id, n.name, props].map(csvEscape).join(','));
185 }
186 return encoder.encode(lines.join('\n'));
187}
188
189const REL_PAIRS = [
190 'Function_Function',

Callers 1

runTestFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected