MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / httpRequest

Function httpRequest

pkg/ratelimit/http_test.go:27–31  ·  view source on GitHub ↗
(url string, remoteIP string)

Source from the content-addressed store, hash-verified

25)
26
27func httpRequest(url string, remoteIP string) *http.Request {
28 req := httptest.NewRequest("GET", url, nil)
29 req.Header.Set("x-real-ip", remoteIP)
30 return req
31}
32
33func TestHTTP(t *testing.T) {
34 a := assertions.New(t)

Callers 1

TestHTTPFunction · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected