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

Function executeWithStdin

plugins/pass/commands/command_test.go:231–234  ·  view source on GitHub ↗
(t *testing.T, cmd *cobra.Command, mock store.Store, stdin string, args ...string)

Source from the content-addressed store, hash-verified

229}
230
231func executeWithStdin(t *testing.T, cmd *cobra.Command, mock store.Store, stdin string, args ...string) (string, error) {
232 t.Helper()
233 return runCobra(t, cmd, mock, bytes.NewBufferString(stdin), args)
234}
235
236func runCobra(t *testing.T, cmd *cobra.Command, mock store.Store, stdin *bytes.Buffer, args []string) (string, error) {
237 t.Helper()

Callers 1

Test_SetCommandFunction · 0.85

Calls 1

runCobraFunction · 0.85

Tested by

no test coverage detected