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

Function getValues

test/unit/encoder-tests.js:499–505  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

497
498 it(util.format('should encode/decode ES6 Map as maps for protocol v%d', version), function () {
499 function getValues(m) {
500 const arr = [];
501 m.forEach(function (val, key) {
502 arr.push([key, val]);
503 });
504 return arr.toString();
505 }
506 // eslint-disable-next-line no-undef
507 const Es6Map = Map;
508 const encoder = new Encoder(version, { encoding: { map: Es6Map}});

Callers 1

encoder-tests.jsFile · 0.85

Calls 3

forEachMethod · 0.65
toStringMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected