MCPcopy Index your code
hub / github.com/cli/cli / testingLogsApp

Function testingLogsApp

pkg/cmd/codespace/logs_test.go:24–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24func 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}

Callers 1

Calls 2

TestFunction · 0.92
NewAppFunction · 0.85

Tested by

no test coverage detected