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

Function TestAliasController_UnsetAlias_NoMatch

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

Source from the content-addressed store, hash-verified

152}
153
154func TestAliasController_UnsetAlias_NoMatch(t *testing.T) {
155 cfg, _ := setupAliasConfig(t)
156
157 ctrl := NewAliasController("192.168.1.1", cfg, "nonexistent")
158 result := ctrl.UnsetAlias()
159 assert.False(t, result) // No matching alias, should return false
160}
161
162func TestAliasController_SetAlias_NoMatchingIp(t *testing.T) {
163 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