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

Struct MockFactory

test/testutil/fakefactory.go:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63type MockFactory struct {
64 api *MockHttpServer // must not be nil
65 SystemClient *octopusApiClient.Client // nil; lazily created like with the real factory
66 SpaceScopedClient *octopusApiClient.Client // nil; lazily created like with the real factory
67 CurrentSpace *spaces.Space
68 RawSpinner factory.Spinner
69 AskProvider question.AskProvider
70 ConfigProvider config.IConfigProvider
71 serviceMessageProvider servicemessages.Provider
72}
73
74// refactor this later if there's ever a need for unit tests to vary the server url or API key (why would there be?)
75const serverUrl = "http://server"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected