MCPcopy Create free account
hub / github.com/cli/cli / testScriptParamsFor

Function testScriptParamsFor

acceptance/acceptance_test.go:250–270  ·  view source on GitHub ↗
(tsEnv testScriptEnv, command string)

Source from the content-addressed store, hash-verified

248}
249
250func testScriptParamsFor(tsEnv testScriptEnv, command string) testscript.Params {
251 var files []string
252 if tsEnv.script != "" {
253 files = []string{path.Join("testdata", command, tsEnv.script)}
254 }
255
256 var dir string
257 if len(files) == 0 {
258 dir = path.Join("testdata", command)
259 }
260
261 return testscript.Params{
262 Dir: dir,
263 Files: files,
264 Setup: sharedSetup(tsEnv),
265 Cmds: sharedCmds(tsEnv),
266 RequireExplicitExec: true,
267 RequireUniqueNames: true,
268 TestWork: tsEnv.preserveWorkDir,
269 }
270}
271
272var keyT struct{}
273

Callers 15

TestAPIFunction · 0.85
TestAuthFunction · 0.85
TestGPGKeysFunction · 0.85
TestExtensionsFunction · 0.85
TestIssuesFunction · 0.85
TestDiscussionsFunction · 0.85
TestIssues2_0Function · 0.85
TestLabelsFunction · 0.85
TestOrgFunction · 0.85
TestProjectFunction · 0.85
TestPullRequestsFunction · 0.85
TestReleasesFunction · 0.85

Calls 3

sharedSetupFunction · 0.85
sharedCmdsFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected