MCPcopy Index your code
hub / github.com/cloudfoundry/cli / NewServer

Function NewServer

cf/util/testhelpers/net/server.go:140–143  ·  view source on GitHub ↗
(requests []TestRequest)

Source from the content-addressed store, hash-verified

138}
139
140func NewServer(requests []TestRequest) (*httptest.Server, *TestHandler) {
141 handler := &TestHandler{Requests: requests}
142 return httptest.NewServer(handler), handler
143}
144
145func (h *TestHandler) logError(msg string, args ...interface{}) {
146 println(fmt.Sprintf(msg, args...))

Callers 3

InitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected