MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewMockFactoryWithSpaceAndPrompt

Function NewMockFactoryWithSpaceAndPrompt

test/testutil/fakefactory.go:55–61  ·  view source on GitHub ↗
(api *MockHttpServer, space *spaces.Space, askProvider question.AskProvider)

Source from the content-addressed store, hash-verified

53}
54
55func NewMockFactoryWithSpaceAndPrompt(api *MockHttpServer, space *spaces.Space, askProvider question.AskProvider) *MockFactory {
56 result := NewMockFactory(api)
57 result.CurrentSpace = space
58 result.AskProvider = askProvider
59 result.serviceMessageProvider = servicemessages.NewProvider(servicemessages.NewOutputPrinter(&bytes.Buffer{}, &bytes.Buffer{}))
60 return result
61}
62
63type MockFactory struct {
64 api *MockHttpServer // must not be nil

Callers 9

TestReleaseDeleteFunction · 0.92
TestReleaseListFunction · 0.92
TestPackageVersionsFunction · 0.92
TestPackageListFunction · 0.92
TestPackageUploadFunction · 0.92
TestRunbookListFunction · 0.92
TestGitRunbookListFunction · 0.92
NewMockFactoryWithSpaceFunction · 0.85

Calls 3

NewProviderFunction · 0.92
NewOutputPrinterFunction · 0.92
NewMockFactoryFunction · 0.85

Tested by 8

TestReleaseDeleteFunction · 0.74
TestReleaseListFunction · 0.74
TestPackageVersionsFunction · 0.74
TestPackageListFunction · 0.74
TestPackageUploadFunction · 0.74
TestRunbookListFunction · 0.74
TestGitRunbookListFunction · 0.74