MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / fakeProps

Function fakeProps

lib/properties.ts:345–349  ·  view source on GitHub ↗
(fake: Record<string, PropertyValue>)

Source from the content-addressed store, hash-verified

343}
344
345export function fakeProps(fake: Record<string, PropertyValue>): PropFunc {
346 const fn: PropFunc = (prop, def) => (fake[prop] === undefined ? def : fake[prop]);
347 fn._sourceData = fake;
348 return fn;
349}
350
351export function getRawProperties() {
352 return properties;

Callers 6

processAsmFunction · 0.85
compile-tests.tsFile · 0.85
api-tests.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected