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

Function TestNewAliasController

pkg/control/alias_test.go:32–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30}
31
32func TestNewAliasController(t *testing.T) {
33 cfg := newTestMainConfig()
34 ctrl := NewAliasController("192.168.1.1", cfg, "myalias")
35 assert.NotNil(t, ctrl)
36 assert.Equal(t, "192.168.1.1", ctrl.targetIP)
37 assert.Equal(t, "myalias", ctrl.alias)
38 assert.Equal(t, cfg, ctrl.configuration)
39}
40
41func TestAliasController_SetAlias_Success(t *testing.T) {
42 cfg, _ := setupAliasConfig(t)

Callers

nothing calls this directly

Calls 2

newTestMainConfigFunction · 0.85
NewAliasControllerFunction · 0.85

Tested by

no test coverage detected