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

Function TestCreateController_ExecuteCreate_Users

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

Source from the content-addressed store, hash-verified

37}
38
39func TestCreateController_ExecuteCreate_Users(t *testing.T) {
40 cfg, _ := setupCreateConfig(t)
41
42 ctrl := NewCreateController(TypeUsers, "newuser", cfg)
43 ctrl.ExecuteCreate()
44
45 assert.Contains(t, cfg.Main.Users, "newuser")
46}
47
48func TestCreateController_ExecuteCreate_Users_Duplicate(t *testing.T) {
49 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