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

Function TestAliasController_UnsetAlias

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

Source from the content-addressed store, hash-verified

144}
145
146func TestAliasController_UnsetAlias(t *testing.T) {
147 cfg, _ := setupAliasConfig(t)
148
149 ctrl := NewAliasController("192.168.1.1", cfg, "server1")
150 result := ctrl.UnsetAlias()
151 assert.True(t, result)
152}
153
154func TestAliasController_UnsetAlias_NoMatch(t *testing.T) {
155 cfg, _ := setupAliasConfig(t)

Callers

nothing calls this directly

Calls 3

UnsetAliasMethod · 0.95
setupAliasConfigFunction · 0.85
NewAliasControllerFunction · 0.85

Tested by

no test coverage detected