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

Function TestAliasController_SetAlias_Success

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

Source from the content-addressed store, hash-verified

39}
40
41func TestAliasController_SetAlias_Success(t *testing.T) {
42 cfg, _ := setupAliasConfig(t)
43
44 ctrl := NewAliasController("192.168.1.1", cfg, "newalias")
45 result := ctrl.SetAlias()
46 assert.True(t, result)
47}
48
49func TestAliasController_SetAlias_DuplicateAlias(t *testing.T) {
50 cfg, _ := setupAliasConfig(t)

Callers

nothing calls this directly

Calls 3

SetAliasMethod · 0.95
setupAliasConfigFunction · 0.85
NewAliasControllerFunction · 0.85

Tested by

no test coverage detected