MCPcopy Index your code
hub / github.com/bytebase/bytebase / newActuatorInfoTestClient

Function newActuatorInfoTestClient

action/command/root_test.go:181–194  ·  view source on GitHub ↗
(t *testing.T, version string)

Source from the content-addressed store, hash-verified

179}
180
181func newActuatorInfoTestClient(t *testing.T, version string) *client {
182 t.Helper()
183
184 path, handler := v1connect.NewActuatorServiceHandler(&actuatorInfoTestService{version: version})
185 mux := http.NewServeMux()
186 mux.Handle(path, handler)
187 server := httptest.NewServer(mux)
188 t.Cleanup(server.Close)
189
190 client, err := newClient(server.URL, "token", "", "", defaultClientOptions())
191 require.NoError(t, err)
192 t.Cleanup(client.close)
193 return client
194}
195
196type actuatorInfoTestService struct {
197 version string

Calls 4

defaultClientOptionsFunction · 0.85
newClientFunction · 0.70
HandleMethod · 0.45

Tested by

no test coverage detected