MCPcopy Create free account
hub / github.com/imroc/req / getTestServerURL

Function getTestServerURL

req_test.go:62–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60)
61
62func getTestServerURL() string {
63 if testServer != nil {
64 return testServer.URL
65 }
66 testServerMu.Lock()
67 defer testServerMu.Unlock()
68 testServer = createTestServer()
69 return testServer.URL
70}
71
72func getTestFileContent(t *testing.T, filename string) []byte {
73 b, err := os.ReadFile(tests.GetTestFilePath(filename))

Callers 1

tcFunction · 0.85

Calls 3

createTestServerFunction · 0.85
LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…