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

Function prepareAndAssert

test/unit/connection-tests.js:50–58  ·  view source on GitHub ↗
(connection, query)

Source from the content-addressed store, hash-verified

48 });
49 describe('#prepareOnce()', function () {
50 function prepareAndAssert(connection, query) {
51 return (function (cb) {
52 connection.prepareOnce(query, 'ks', function (err, r) {
53 assert.ifError(err);
54 assert.strictEqual(query, r);
55 cb();
56 });
57 });
58 }
59 it('should prepare different queries', function (done) {
60 const connection = newInstance();
61 //override sendStream behaviour

Callers 1

Calls 2

cbFunction · 0.85
prepareOnceMethod · 0.80

Tested by

no test coverage detected