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

Function TestNewCreateController

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

Source from the content-addressed store, hash-verified

28}
29
30func TestNewCreateController(t *testing.T) {
31 cfg := newTestMainConfig()
32 ctrl := NewCreateController(TypeUsers, "root", cfg)
33 assert.NotNil(t, ctrl)
34 assert.Equal(t, TypeUsers, ctrl.createType)
35 assert.Equal(t, "root", ctrl.createContent)
36 assert.Equal(t, cfg, ctrl.configuration)
37}
38
39func TestCreateController_ExecuteCreate_Users(t *testing.T) {
40 cfg, _ := setupCreateConfig(t)

Callers

nothing calls this directly

Calls 2

newTestMainConfigFunction · 0.85
NewCreateControllerFunction · 0.85

Tested by

no test coverage detected