MCPcopy Create free account
hub / github.com/cli/cli / testingSSHApp

Function testingSSHApp

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

TestFunction · 0.92
NewAppFunction · 0.85

Tested by

no test coverage detected