( filepath: string, contents: string, maxChunkSize: number, )
| 73 | }); |
| 74 | |
| 75 | async function collectContents( |
| 76 | filepath: string, |
| 77 | contents: string, |
| 78 | maxChunkSize: number, |
| 79 | ): Promise<string[]> { |
| 80 | const out: string[] = []; |
| 81 | for await (const c of codeChunker(filepath, contents, maxChunkSize)) { |
| 82 | out.push(c.content); |
| 83 | } |
| 84 | return out; |
| 85 | } |
| 86 | |
| 87 | describe("codeChunker function definition", () => { |
| 88 | afterAll(async () => await cleanupAsyncEncoders()); |
no test coverage detected