MCPcopy
hub / github.com/cli/cli / testingRebuildApp

Function testingRebuildApp

pkg/cmd/codespace/rebuild_test.go:25–37  ·  view source on GitHub ↗
(mockCodespace api.Codespace)

Source from the content-addressed store, hash-verified

23}
24
25func testingRebuildApp(mockCodespace api.Codespace) *App {
26 apiMock := &apiClientMock{
27 GetCodespaceFunc: func(_ context.Context, name string, _ bool) (*api.Codespace, error) {
28 if name == mockCodespace.Name {
29 return &mockCodespace, nil
30 }
31 return nil, nil
32 },
33 }
34
35 ios, _, _, _ := iostreams.Test()
36 return NewApp(ios, nil, apiMock, nil, nil)
37}

Callers 1

Calls 2

TestFunction · 0.92
NewAppFunction · 0.85

Tested by

no test coverage detected