MCPcopy Index your code
hub / github.com/cli/cli / testScriptParamsFor

Function testScriptParamsFor

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

Source from the content-addressed store, hash-verified

213}
214
215func 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
237var keyT struct{}
238

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