MCPcopy
hub / github.com/simstudioai/sim / csvWithRows

Function csvWithRows

apps/sim/lib/file-parsers/csv-preview-slice.test.ts:25–29  ·  view source on GitHub ↗
(dataRows: number)

Source from the content-addressed store, hash-verified

23const args = { key: 'workspace/ws_1/file.csv', context: 'workspace' as const }
24
25function csvWithRows(dataRows: number): string {
26 const lines = ['h1,h2']
27 for (let i = 0; i < dataRows; i++) lines.push(`${i},x`)
28 return lines.join('\n')
29}
30
31describe('getCsvPreviewSlice', () => {
32 beforeEach(() => {

Callers 1

Calls 2

joinMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected