()
| 22 | } |
| 23 | |
| 24 | func testingLogsApp() *App { |
| 25 | disabledCodespace := &api.Codespace{ |
| 26 | Name: "disabledCodespace", |
| 27 | PendingOperation: true, |
| 28 | PendingOperationDisabledReason: "Some pending operation", |
| 29 | } |
| 30 | apiMock := &apiClientMock{ |
| 31 | GetCodespaceFunc: func(_ context.Context, name string, _ bool) (*api.Codespace, error) { |
| 32 | if name == "disabledCodespace" { |
| 33 | return disabledCodespace, nil |
| 34 | } |
| 35 | return nil, nil |
| 36 | }, |
| 37 | } |
| 38 | |
| 39 | ios, _, _, _ := iostreams.Test() |
| 40 | return NewApp(ios, nil, apiMock, nil, nil) |
| 41 | } |
no test coverage detected