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

Function createHostMap

test/unit/load-balancing-tests.js:589–595  ·  view source on GitHub ↗

* Creates a dummy host map containing the key as key and value * @param {Array} hosts * @returns {HostMap}

(hosts)

Source from the content-addressed store, hash-verified

587 * @returns {HostMap}
588 */
589function createHostMap(hosts) {
590 const map = new HostMap();
591 for (let i = 0; i < hosts.length; i++) {
592 map.set(hosts[i], hosts[i]);
593 }
594 return map;
595}
596
597/**
598 *

Callers 1

Calls 1

setMethod · 0.95

Tested by

no test coverage detected