MCPcopy
hub / github.com/mthenw/frontail / writeLines

Function writeLines

test/tail.js:10–19  ·  view source on GitHub ↗
(fd, count)

Source from the content-addressed store, hash-verified

8const SPAWN_DELAY = 10;
9
10function writeLines(fd, count) {
11 for (let i = 0; i < count; i += 1) {
12 fs.writeSync(
13 fd,
14 `line${i}
15`
16 );
17 }
18 fs.closeSync(fd);
19}
20
21describe('tail', () => {
22 temp.track();

Callers 1

tail.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected