MCPcopy Create free account
hub / github.com/docker/secrets-engine / mockVersionEngine

Function mockVersionEngine

client/client_test.go:56–61  ·  view source on GitHub ↗
(t *testing.T, version, date, commitHash string)

Source from the content-addressed store, hash-verified

54}
55
56func mockVersionEngine(t *testing.T, version, date, commitHash string) string {
57 t.Helper()
58 socketPath := testhelper.RandomShortSocketName()
59 muxServer(t, socketPath, []handler{wrapHandler(healthv1connect.NewVersionServiceHandler(&mockVersionService{version: version, date: date, commitHash: commitHash}))})
60 return socketPath
61}
62
63var _ pluginsv1connect.PluginManagementServiceHandler = &mockPluginsList{}
64

Callers 1

Test_VersionFunction · 0.85

Calls 2

muxServerFunction · 0.85
wrapHandlerFunction · 0.85

Tested by

no test coverage detected