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

Function newInstance

test/unit/parser-tests.js:1201–1206  ·  view source on GitHub ↗

* @param {Number} [protocolVersion] * @returns {exports.Parser}

(protocolVersion)

Source from the content-addressed store, hash-verified

1199 * @returns {exports.Parser}
1200 */
1201function newInstance(protocolVersion) {
1202 if (!protocolVersion) {
1203 protocolVersion = 2;
1204 }
1205 return new streams.Parser({objectMode:true}, new Encoder(protocolVersion, {}));
1206}
1207
1208/**
1209 * Test Helper method to get a frame header with stream id 12

Callers 2

parser-tests.jsFile · 0.70
buildParserAndExpectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected