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

Function mockListPluginsEngine

client/client_test.go:145–150  ·  view source on GitHub ↗
(t *testing.T, plugins []PluginInfo)

Source from the content-addressed store, hash-verified

143}
144
145func mockListPluginsEngine(t *testing.T, plugins []PluginInfo) string {
146 t.Helper()
147 socketPath := testhelper.RandomShortSocketName()
148 muxServer(t, socketPath, []handler{wrapHandler(pluginsv1connect.NewPluginManagementServiceHandler(&mockPluginsList{list: plugins}))})
149 return socketPath
150}
151
152func Test_ListPlugins(t *testing.T) {
153 t.Parallel()

Callers 1

Test_ListPluginsFunction · 0.85

Calls 2

muxServerFunction · 0.85
wrapHandlerFunction · 0.85

Tested by

no test coverage detected