(t *testing.T)
| 136 | } |
| 137 | |
| 138 | func 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 | |
| 144 | func InvalidArrayDataTypeShowsError(t *testing.T, datatype string, values string) { |
| 145 | definition := ` |
nothing calls this directly
no test coverage detected