MCPcopy Create free account
hub / github.com/denoland/std / init

Function init

io/buffer_test.ts:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16const ignoreMaxSizeTests = true;
17
18function init() {
19 if (testBytes === undefined) {
20 testBytes = new Uint8Array(N);
21 for (let i = 0; i < N; i++) {
22 testBytes[i] = "a".charCodeAt(0) + (i % 26);
23 }
24 const decoder = new TextDecoder();
25 testString = decoder.decode(testBytes);
26 }
27}
28
29function check(buf: Buffer, s: string) {
30 const bytes = buf.bytes();

Callers 3

read_all_test.tsFile · 0.90
write_all_test.tsFile · 0.90
buffer_test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected