MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / doLoopbackRequest

Function doLoopbackRequest

internal/server/server_test.go:44–46  ·  view source on GitHub ↗
(srv *Server, method, path string, body interface{})

Source from the content-addressed store, hash-verified

42}
43
44func doLoopbackRequest(srv *Server, method, path string, body interface{}) *httptest.ResponseRecorder {
45 return doRequestFromRemoteAddr(srv, method, path, body, "127.0.0.1:1234")
46}
47
48func doRequestFromRemoteAddr(srv *Server, method, path string, body interface{}, remoteAddr string) *httptest.ResponseRecorder {
49 var bodyReader io.Reader

Calls 1

doRequestFromRemoteAddrFunction · 0.85

Tested by

no test coverage detected