(tsEnv testScriptEnv, command string)
| 213 | } |
| 214 | |
| 215 | func testScriptParamsFor(tsEnv testScriptEnv, command string) testscript.Params { |
| 216 | var files []string |
| 217 | if tsEnv.script != "" { |
| 218 | files = []string{path.Join("testdata", command, tsEnv.script)} |
| 219 | } |
| 220 | |
| 221 | var dir string |
| 222 | if len(files) == 0 { |
| 223 | dir = path.Join("testdata", command) |
| 224 | } |
| 225 | |
| 226 | return testscript.Params{ |
| 227 | Dir: dir, |
| 228 | Files: files, |
| 229 | Setup: sharedSetup(tsEnv), |
| 230 | Cmds: sharedCmds(tsEnv), |
| 231 | RequireExplicitExec: true, |
| 232 | RequireUniqueNames: true, |
| 233 | TestWork: tsEnv.preserveWorkDir, |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | var keyT struct{} |
| 238 |
no test coverage detected