MCPcopy
hub / github.com/cli/cli / testingSSHApp

Function testingSSHApp

pkg/cmd/codespace/ssh_test.go:287–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285}
286
287func testingSSHApp() *App {
288 disabledCodespace := &api.Codespace{
289 Name: "disabledCodespace",
290 PendingOperation: true,
291 PendingOperationDisabledReason: "Some pending operation",
292 }
293 apiMock := &apiClientMock{
294 GetCodespaceFunc: func(_ context.Context, name string, _ bool) (*api.Codespace, error) {
295 if name == "disabledCodespace" {
296 return disabledCodespace, nil
297 }
298 return nil, nil
299 },
300 }
301
302 ios, _, _, _ := iostreams.Test()
303 return NewApp(ios, nil, apiMock, nil, nil)
304}

Callers 1

Calls 2

TestFunction · 0.92
NewAppFunction · 0.85

Tested by

no test coverage detected