(t *testing.T, cmd *cobra.Command, mock store.Store, stdin string, args ...string)
| 229 | } |
| 230 | |
| 231 | func 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 | |
| 236 | func runCobra(t *testing.T, cmd *cobra.Command, mock store.Store, stdin *bytes.Buffer, args []string) (string, error) { |
| 237 | t.Helper() |
no test coverage detected