()
| 281 | } |
| 282 | |
| 283 | func 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 | } |
no test coverage detected