(args []string)
| 280 | } |
| 281 | |
| 282 | func (e *CLITest) cmdArgs(args []string) []string { |
| 283 | var suffix []string |
| 284 | |
| 285 | // detect repository creation and override DefaultRepositoryCreateFlags for best |
| 286 | // performance on the current platform. |
| 287 | if len(args) >= 2 && (args[0] == "repo" && args[1] == "create") { |
| 288 | suffix = e.DefaultRepositoryCreateFlags |
| 289 | } |
| 290 | |
| 291 | return append(append(append([]string(nil), e.fixedArgs...), args...), suffix...) |
| 292 | } |
| 293 | |
| 294 | // Run executes kopia with given arguments and returns the output lines. |
| 295 | func (e *CLITest) Run(tb testing.TB, expectedError bool, args ...string) (stdout, stderr []string, err error) { |
no outgoing calls
no test coverage detected