MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / testRequestLength

Function testRequestLength

test/unit/requests-test.js:324–332  ·  view source on GitHub ↗
(requestGetter)

Source from the content-addressed store, hash-verified

322}
323
324function testRequestLength(requestGetter) {
325 it('should set the length of the body of the request', () => {
326 const request = requestGetter();
327
328 assert.strictEqual(request.length, 0);
329 request.write(encoder, 0);
330 assert.ok(request.length > 0);
331 });
332}
333
334function getQueryRequest(options, params) {
335 options = options || {};

Callers 1

requests-test.jsFile · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected