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

Method ReceiveRequest

test/testutil/fakeoctopusserver.go:116–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116func (m *MockHttpServer) ReceiveRequest() (*http.Request, bool) {
117 atomic.AddInt32(&m.pendingMsgCount, 1)
118 request := <-m.Request
119 atomic.AddInt32(&m.pendingMsgCount, -1)
120 return request, !m.Closed // reading from closed channels works fine and just returns the default
121}
122
123func (m *MockHttpServer) Respond(response *http.Response, err error) {
124 if m.Closed {

Callers 2

TestApiCommandFunction · 0.95
ExpectRequestMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestApiCommandFunction · 0.76