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

Function getControlConnectionMock

test/unit/client-tests.js:793–805  ·  view source on GitHub ↗
(hosts, options)

Source from the content-addressed store, hash-verified

791});
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
804 return ControlConnectionMock;
805}
806
807function getOptions(options) {
808 return clientOptions.extend({ contactPoints: ['hostip1']}, options);

Callers 1

client-tests.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected