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

Function wrapClient

test/integration/short/graph/graph-tests.js:1166–1177  ·  view source on GitHub ↗
(handler, options)

Source from the content-addressed store, hash-verified

1164}
1165
1166function wrapClient(handler, options) {
1167 return (function wrappedTestCase(done) {
1168 const client = newInstance(options);
1169 utils.series([
1170 client.connect.bind(client),
1171 function testItem(next) {
1172 handler(client, next);
1173 },
1174 client.shutdown.bind(client)
1175 ], done);
1176 });
1177}
1178
1179function newInstance(options) {
1180 const opts = helper.getOptions(utils.extend(options || {}, { graphOptions : { name: 'name1' }}));

Callers 1

graph-tests.jsFile · 0.70

Calls 2

handlerFunction · 0.85
newInstanceFunction · 0.70

Tested by

no test coverage detected