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

Function verifyRow

test/integration/short/client-execute-tests.js:1187–1196  ·  view source on GitHub ↗
(table, id, fields, values, callback)

Source from the content-addressed store, hash-verified

1185}
1186
1187function verifyRow(table, id, fields, values, callback) {
1188 const client = newInstance();
1189 client.execute(util.format('SELECT %s FROM %s WHERE id = %s', fields, table, id), function (err, result) {
1190 assert.ifError(err);
1191 const row = result.first();
1192 assert.ok(row, 'It should contain a row');
1193 helper.assertValueEqual(row.values(), values);
1194 callback();
1195 });
1196}
1197
1198/**
1199 * @param [options]

Callers 1

Calls 4

newInstanceFunction · 0.70
firstMethod · 0.65
valuesMethod · 0.65
executeMethod · 0.45

Tested by

no test coverage detected