()
| 285 | } |
| 286 | |
| 287 | func 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 | } |
no test coverage detected