MCPcopy Create free account
hub / github.com/mscdex/ssh2 / setupSimple

Function setupSimple

test/common.js:293–305  ·  view source on GitHub ↗
(debug, title)

Source from the content-addressed store, hash-verified

291})();
292
293function setupSimple(debug, title) {
294 const { client, server } = setup(title, {
295 client: { username: 'Password User', password: '12345' },
296 server: { hostKeys: [ fixtureKey('ssh_host_rsa_key').raw ] },
297 debug,
298 });
299 server.on('connection', mustCall((conn) => {
300 conn.on('authentication', mustCall((ctx) => {
301 ctx.accept();
302 }));
303 }));
304 return { client, server };
305}
306
307module.exports = {
308 fixture,

Callers 1

setupFunction · 0.85

Calls 3

mustCallFunction · 0.85
setupFunction · 0.70
acceptMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…