MCPcopy
hub / github.com/kopia/kopia / cmdArgs

Method cmdArgs

tests/testenv/cli_test_env.go:282–292  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

280}
281
282func (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.
295func (e *CLITest) Run(tb testing.TB, expectedError bool, args ...string) (stdout, stderr []string, err error) {

Callers 2

RunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected