MCPcopy
hub / github.com/zincsearch/zincsearch / request

Function request

test/api/init.go:96–102  ·  view source on GitHub ↗
(method, api string, body io.Reader)

Source from the content-addressed store, hash-verified

94}
95
96func request(method, api string, body io.Reader) *httptest.ResponseRecorder {
97 req, _ := http.NewRequest(method, api, body)
98 req.SetBasicAuth(username, password)
99 w := httptest.NewRecorder()
100 server().ServeHTTP(w, req)
101 return w
102}

Callers 8

TestSearchV1Function · 0.85
TestAnalyzeFunction · 0.85
TestDocumentBulkFunction · 0.85
TestSearchV2Function · 0.85
TestAuthFunction · 0.85
TestIndexFunction · 0.85
TestDocumentFunction · 0.85
TestApiESFunction · 0.85

Calls 1

serverFunction · 0.85

Tested by 8

TestSearchV1Function · 0.68
TestAnalyzeFunction · 0.68
TestDocumentBulkFunction · 0.68
TestSearchV2Function · 0.68
TestAuthFunction · 0.68
TestIndexFunction · 0.68
TestDocumentFunction · 0.68
TestApiESFunction · 0.68