(options ExecOptions)
| 19 | ) |
| 20 | |
| 21 | func withDefaultOpts(options ExecOptions) ExecOptions { |
| 22 | options.Env = opts.NewListOpts(opts.ValidateEnv) |
| 23 | options.EnvFile = opts.NewListOpts(nil) |
| 24 | if len(options.Command) == 0 { |
| 25 | options.Command = []string{"command"} |
| 26 | } |
| 27 | return options |
| 28 | } |
| 29 | |
| 30 | func TestParseExec(t *testing.T) { |
| 31 | content := `ONE=1 |
no outgoing calls
no test coverage detected
searching dependent graphs…