MCPcopy
hub / github.com/kagent-dev/kagent / get

Function get

go/adk/pkg/models/tls_test.go:38–46  ·  view source on GitHub ↗

get is a helper that makes a GET request and returns the status code.

(t *testing.T, client *http.Client, url string)

Source from the content-addressed store, hash-verified

36
37// get is a helper that makes a GET request and returns the status code.
38func get(t *testing.T, client *http.Client, url string) int {
39 t.Helper()
40 resp, err := client.Get(url)
41 if err != nil {
42 t.Fatalf("GET %s: %v", url, err)
43 }
44 resp.Body.Close()
45 return resp.StatusCode
46}
47
48// --- BuildTLSTransport ---
49

Calls 2

GetMethod · 0.65
CloseMethod · 0.45

Tested by

no test coverage detected