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

Function TestCreateController_ExecuteCreate_Passwords

pkg/control/create_test.go:89–96  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

87}
88
89func TestCreateController_ExecuteCreate_Passwords(t *testing.T) {
90 cfg, _ := setupCreateConfig(t)
91
92 ctrl := NewCreateController(TypePasswords, "newpass", cfg)
93 ctrl.ExecuteCreate()
94
95 assert.Contains(t, cfg.Main.Passwords, "newpass")
96}
97
98func TestCreateController_ExecuteCreate_Passwords_Duplicate(t *testing.T) {
99 cfg, _ := setupCreateConfig(t)

Callers

nothing calls this directly

Calls 3

ExecuteCreateMethod · 0.95
setupCreateConfigFunction · 0.85
NewCreateControllerFunction · 0.85

Tested by

no test coverage detected