MCPcopy Create free account
hub / github.com/convox/rack / TestCheck

Function TestCheck

pkg/api/api_test.go:46–55  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestCheck(t *testing.T) {
47 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
48 res, err := c.GetStream("/check", stdsdk.RequestOptions{})
49 require.NoError(t, err)
50 defer res.Body.Close()
51 data, err := io.ReadAll(res.Body)
52 require.NoError(t, err)
53 require.Equal(t, "ok", string(data))
54 })
55}

Callers

nothing calls this directly

Calls 2

testServerFunction · 0.70
CloseMethod · 0.45

Tested by

no test coverage detected