(t *testing.T, stdin io.Reader, stderr io.Writer)
| 109 | } |
| 110 | |
| 111 | func newSecretTestInvocation(t *testing.T, stdin io.Reader, stderr io.Writer) *serpent.Invocation { |
| 112 | t.Helper() |
| 113 | |
| 114 | flags := pflag.NewFlagSet("test", pflag.ContinueOnError) |
| 115 | if stderr == nil { |
| 116 | stderr = io.Discard |
| 117 | } |
| 118 | inv := (&serpent.Invocation{ |
| 119 | Stdin: stdin, |
| 120 | Stderr: stderr, |
| 121 | Command: &serpent.Command{}, |
| 122 | Args: []string{"api-key"}, |
| 123 | }).WithTestParsedFlags(t, flags) |
| 124 | return inv |
| 125 | } |
no test coverage detected