MCPcopy
hub / github.com/tailscale/tailscale / get

Function get

tsweb/debug_test.go:51–57  ·  view source on GitHub ↗
(m http.Handler, path, srcIP string)

Source from the content-addressed store, hash-verified

49}
50
51func get(m http.Handler, path, srcIP string) (int, string) {
52 req := httptest.NewRequest("GET", path, nil)
53 req.RemoteAddr = srcIP + ":1234"
54 rec := httptest.NewRecorder()
55 m.ServeHTTP(rec, req)
56 return rec.Result().StatusCode, rec.Body.String()
57}
58
59const (
60 tsIP = "100.100.100.100"

Callers 6

TestDebuggerKVFunction · 0.70
TestDebuggerURLFunction · 0.70
TestDebuggerSectionFunction · 0.70
TestDebuggerHandleFunction · 0.70
acceptUDPMethod · 0.50
TestPollerFunction · 0.50

Calls 3

ResultMethod · 0.80
StringMethod · 0.65
ServeHTTPMethod · 0.45

Tested by

no test coverage detected