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

Function TestInvalidArrayDataTypesShowError

test/validation_test.go:138–142  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

136}
137
138func TestInvalidArrayDataTypesShowError(t *testing.T) {
139 t.Run("Integer", func(t *testing.T) { InvalidArrayDataTypeShowsError(t, "integer", "1,INVALID,3") })
140 t.Run("Number", func(t *testing.T) { InvalidArrayDataTypeShowsError(t, "number", "1.3, 1.0, INVALID") })
141 t.Run("Boolean", func(t *testing.T) { InvalidArrayDataTypeShowsError(t, "boolean", "true, false, invalid") })
142}
143
144func InvalidArrayDataTypeShowsError(t *testing.T, datatype string, values string) {
145 definition := `

Callers

nothing calls this directly

Calls 2

RunMethod · 0.80

Tested by

no test coverage detected