MCPcopy
hub / github.com/jvilk/BrowserFS / cb

Function cb

test/tests/general/std-streams.ts:6–12  ·  view source on GitHub ↗
(stream: NodeJS.ReadWriteStream)

Source from the content-addressed store, hash-verified

4 var datStr = "hey\nhere's some data.",
5 count = 0,
6 cb = function(stream: NodeJS.ReadWriteStream) {
7 return function(data: Buffer) {
8 assert(typeof(data) !== 'string');
9 assert.equal(data.toString(), datStr);
10 count++;
11 }
12 },
13 streams = [process.stdout, <any> process.stderr, process.stdin];
14
15 for (let i = 0; i < streams.length; i++) {

Callers 15

setup.tsFile · 0.85
authFunction · 0.85
DBFSFactoryFunction · 0.85
AsyncMirrorFactoryFunction · 0.85
FolderAdapterFactoryFunction · 0.85
HTML5FSFactoryFunction · 0.85
OverlayFactoryFunction · 0.85
IsoFSFactoryFunction · 0.85
fetchIsoFunction · 0.85
ZipFSFactoryFunction · 0.85
fetchZipFunction · 0.85
InMemoryFSFactoryFunction · 0.85

Calls 2

toStringMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected