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

Function TestCommaSeparatedArrayArgument

test/execution_test.go:388–401  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

386}
387
388func TestCommaSeparatedArrayArgument(t *testing.T) {
389 t.Run("StringArray", func(t *testing.T) {
390 CommaSeparatedArrayArgument(t, "string", "val1,val2", "val1,val2")
391 })
392 t.Run("IntegerArray", func(t *testing.T) {
393 CommaSeparatedArrayArgument(t, "integer", "1,4", "1,4")
394 })
395 t.Run("NumberArray", func(t *testing.T) {
396 CommaSeparatedArrayArgument(t, "number", "0.5,0.1,1.3", "0.5,0.1,1.3")
397 })
398 t.Run("BooleanArray", func(t *testing.T) {
399 CommaSeparatedArrayArgument(t, "boolean", "true,false,true", "true,false,true")
400 })
401}
402
403func CommaSeparatedArrayArgument(t *testing.T, itemsType string, argument string, pathValue string) {
404 definition := `

Callers

nothing calls this directly

Calls 2

RunMethod · 0.80

Tested by

no test coverage detected