MCPcopy
hub / github.com/ampproject/worker-dom / deriveValueToTest

Function deriveValueToTest

src/test/reflectPropertiesHelper.ts:55–66  ·  view source on GitHub ↗
(valueToTest: string | boolean | number)

Source from the content-addressed store, hash-verified

53}
54
55function deriveValueToTest(valueToTest: string | boolean | number): string | boolean | number {
56 switch (typeof valueToTest) {
57 case 'string':
58 return `alt-${valueToTest || ''}`;
59 case 'boolean':
60 return !valueToTest;
61 case 'number':
62 return Number(valueToTest) + 1;
63 default:
64 return valueToTest;
65 }
66}

Callers 1

testReflectedPropertyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…