MCPcopy Create free account
hub / github.com/mpolden/echoip / testServer

Function testServer

http/http_test.go:42–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40func (t *testDb) IsEmpty() bool { return false }
41
42func testServer() *Server {
43 return &Server{cache: NewCache(100), gr: &testDb{}, LookupAddr: lookupAddr, LookupPort: lookupPort}
44}
45
46func httpGet(url string, acceptMediaType string, userAgent string) (string, int, error) {
47 r, err := http.NewRequest("GET", url, nil)

Callers 5

TestCLIHandlersFunction · 0.85
TestDisabledHandlersFunction · 0.85
TestJSONHandlersFunction · 0.85
TestCacheHandlerFunction · 0.85
TestCacheResizeHandlerFunction · 0.85

Calls 1

NewCacheFunction · 0.85

Tested by

no test coverage detected