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

Function NewMockServerAndAsker

test/testutil/testutil.go:89–93  ·  view source on GitHub ↗

NewMockServerAndAsker creates both a MockHttpServer and AskMocker it's super common to New both the mock server and asker at the same time

()

Source from the content-addressed store, hash-verified

87// NewMockServerAndAsker creates both a MockHttpServer and AskMocker
88// it's super common to New both the mock server and asker at the same time
89func NewMockServerAndAsker() (*MockHttpServer, *AskMocker) {
90 server := NewMockHttpServer()
91 qa := NewAskMocker()
92 return server, qa
93}
94
95// Close will close both a MockHttpServer and AskMocker
96// it's super common to Close both the mock server and asker at the same time

Calls 2

NewMockHttpServerFunction · 0.85
NewAskMockerFunction · 0.85