MCPcopy
hub / github.com/feross/buffer / testBufs

Function testBufs

test/node/test-buffer-fill.js:279–285  ·  view source on GitHub ↗
(string, offset, length, encoding)

Source from the content-addressed store, hash-verified

277
278
279function testBufs(string, offset, length, encoding) {
280 bufReset();
281 buf1.fill.apply(buf1, arguments);
282 // Swap bytes on BE archs for ucs2 encoding.
283 assert.deepStrictEqual(buf1.fill.apply(buf1, arguments),
284 writeToFill.apply(null, arguments));
285}
286

Callers 1

Calls 1

bufResetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…