MCPcopy Index your code
hub / github.com/bytecodealliance/ComponentizeJS / test

Function test

test/builtins/crypto-random.js:11–18  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

9`;
10
11export async function test(run) {
12 const { stdout, stderr } = await run();
13 strictEqual(stderr, '');
14 const randoms = stdout.split('\n');
15 for (let i = 0; i < 10; i++) {
16 ok(Number(randoms[i]) > 0);
17 }
18}

Callers

nothing calls this directly

Calls 1

runFunction · 0.50

Tested by

no test coverage detected