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

Function ControlConnectionMock

test/unit/client-tests.js:794–800  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

792
793function getControlConnectionMock(hosts, options) {
794 function ControlConnectionMock() {
795 this.hosts = hosts || new HostMap();
796 this.metadata = new Metadata(options || {});
797 this.profileManager = newProfileManager(options);
798 this.host = { setDistance: utils.noop };
799 this.shutdown = utils.noop;
800 }
801
802 ControlConnectionMock.prototype.init = async () => {};
803

Callers

nothing calls this directly

Calls 1

newProfileManagerFunction · 0.85

Tested by

no test coverage detected