MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestNewSSHController

Function TestNewSSHController

pkg/control/ssh_test.go:36–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestNewSSHController(t *testing.T) {
37 cfg := newTestMainConfig()
38 ctrl := NewSSHController("192.168.1.1", cfg)
39 assert.NotNil(t, ctrl)
40 assert.Equal(t, "192.168.1.1", ctrl.targetIP)
41 assert.Equal(t, cfg, ctrl.configuration)
42}
43
44func TestSSHController_TryLogin_WithCacheFound(t *testing.T) {
45 cfg := newTestMainConfig()

Callers

nothing calls this directly

Calls 2

newTestMainConfigFunction · 0.85
NewSSHControllerFunction · 0.85

Tested by

no test coverage detected