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

Function TestCreateController_ExecuteCreate_Keys

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

Source from the content-addressed store, hash-verified

111}
112
113func TestCreateController_ExecuteCreate_Keys(t *testing.T) {
114 cfg, _ := setupCreateConfig(t)
115
116 ctrl := NewCreateController(TypeKeys, "/path/to/key", cfg)
117 ctrl.ExecuteCreate()
118
119 assert.Contains(t, cfg.Main.Keys, "/path/to/key")
120}
121
122func TestCreateController_ExecuteCreate_Caches_ValidJSON(t *testing.T) {
123 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