MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / newServerHelper

Function newServerHelper

internal/sshserver/Server_test.go:508–521  ·  view source on GitHub ↗
(
	t *testing.T,
	listen string,
	passwords map[string][]byte,
	pubKeys map[string]string,
)

Source from the content-addressed store, hash-verified

506}
507
508func newServerHelper(
509 t *testing.T,
510 listen string,
511 passwords map[string][]byte,
512 pubKeys map[string]string,
513) *serverHelper {
514 return &serverHelper{
515 t: t,
516 listen: listen,
517 passwords: passwords,
518 pubKeys: pubKeys,
519 receivedChannel: make(chan struct{}, 1),
520 }
521}
522
523type serverHelper struct {
524 t *testing.T

Callers 4

TestAuthFailedFunction · 0.85
TestSessionSuccessFunction · 0.85
TestSessionErrorFunction · 0.85
TestPubKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected