MCPcopy Create free account
hub / github.com/UiPath/uipathcli / getFolder

Method getFolder

plugin/studio/testrun/test_run_command.go:342–348  ·  view source on GitHub ↗
(parameters []plugin.ExecutionParameter)

Source from the content-addressed store, hash-verified

340}
341
342func (c TestRunCommand) getFolder(parameters []plugin.ExecutionParameter) string {
343 folderId := c.getIntParameter("folder-id", 0, parameters)
344 if folderId != 0 {
345 return strconv.Itoa(folderId)
346 }
347 return c.getStringParameter("folder", "Shared", parameters)
348}
349
350func (c TestRunCommand) getIntParameter(name string, defaultValue int, parameters []plugin.ExecutionParameter) int {
351 result := defaultValue

Callers 1

ExecuteMethod · 0.95

Calls 2

getIntParameterMethod · 0.95
getStringParameterMethod · 0.95

Tested by

no test coverage detected