(text: string)
| 136 | describe('stripCommentsForRegex keeps every offset', () => { |
| 137 | // A blank stands for each character of a comment, a newline for itself. |
| 138 | const blanked = (text: string): string => text.replace(/[^\n]/g, ' '); |
| 139 | const cases: Array<[string, Parameters<typeof stripCommentsForRegex>[1], string, string]> = [ |
| 140 | ['a block comment across lines', 'cpp', 'int a; /* one\r\n two\n */ int b;', '/* one\r\n two\n */'], |
| 141 | ['a comment that runs off the end', 'typescript', 'const a = 1; /* open\nstill', '/* open\nstill'], |
no outgoing calls
no test coverage detected