MCPcopy Index your code
hub / github.com/googleworkspace/apps-script-samples / assert

Function assert

wasm/hello-world/src/test.js:21–28  ·  view source on GitHub ↗
(a, b, message)

Source from the content-addressed store, hash-verified

19}
20
21async function assert(a, b, message) {
22 const aVal = await a;
23 const bVal = await b;
24
25 if (aVal !== bVal) {
26 throw message ?? `'${aVal}' !== '${bVal}'`;
27 }
28}
29
30async function latency(func, iterations, argsFunc = () => []) {
31 const executionTimes = [];

Callers 1

testFunction · 0.70

Calls

no outgoing calls

Tested by 1

testFunction · 0.56