MCPcopy Create free account
hub / github.com/BCsabaEngine/svelteesp32 / createMockSource

Function createMockSource

test/unit/cppCode.test.ts:29–38  ·  view source on GitHub ↗
(filename: string, content: string)

Source from the content-addressed store, hash-verified

27};
28
29const 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
40const createMockAssetSource = (filename: string, content: string): CppCodeSource => ({
41 ...createMockSource(filename, content),

Callers 2

createMockAssetSourceFunction · 0.70
cppCode.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected