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

Method Respond

test/testutil/fakeoctopusserver.go:123–131  ·  view source on GitHub ↗
(response *http.Response, err error)

Source from the content-addressed store, hash-verified

121}
122
123func (m *MockHttpServer) Respond(response *http.Response, err error) {
124 if m.Closed {
125 return // can't respond after closure
126 }
127
128 atomic.AddInt32(&m.pendingMsgCount, 1)
129 m.Response <- responseOrError{response: response, error: err}
130 atomic.AddInt32(&m.pendingMsgCount, -1)
131}
132
133// now we build some higher level methods on top of ReceiveRequest
134

Callers 4

TestApiCommandFunction · 0.95
RespondWithJSONMethod · 0.80
RespondWithStatusMethod · 0.80
RespondWithErrorMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestApiCommandFunction · 0.76