(filename: string, content: string)
| 27 | }; |
| 28 | |
| 29 | const createMockSource = (filename: string, content: string): CppCodeSource => ({ |
| 30 | filename, |
| 31 | dataname: filename.replaceAll(/[^\dA-Za-z]/g, '_'), |
| 32 | datanameUpperCase: filename.replaceAll(/[^\dA-Za-z]/g, '_').toUpperCase(), |
| 33 | mime: 'text/html', |
| 34 | content: Buffer.from(content), |
| 35 | contentGzip: Buffer.from('gzipped'), |
| 36 | isGzip: true, |
| 37 | sha256: 'abc123' |
| 38 | }); |
| 39 | |
| 40 | const createMockAssetSource = (filename: string, content: string): CppCodeSource => ({ |
| 41 | ...createMockSource(filename, content), |
no outgoing calls
no test coverage detected