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

Function TestGetController_ExecuteGet_Keys_Specific

pkg/control/get_test.go:135–145  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

133}
134
135func TestGetController_ExecuteGet_Keys_Specific(t *testing.T) {
136 cfg := newTestMainConfig()
137 cfg.Main.Keys = []string{"/path/to/key1", "/path/to/key2"}
138 ctrl := NewGetController(TypeKeys, "/path/to/key1", cfg)
139
140 output := captureOutput(func() {
141 ctrl.ExecuteGet()
142 })
143
144 assert.Contains(t, output, "/path/to/key1")
145}
146
147func TestGetController_ExecuteGet_Caches_All(t *testing.T) {
148 cfg := newTestMainConfig()

Callers

nothing calls this directly

Calls 4

ExecuteGetMethod · 0.95
newTestMainConfigFunction · 0.85
NewGetControllerFunction · 0.85
captureOutputFunction · 0.70

Tested by

no test coverage detected