(t *testing.T)
| 104 | } |
| 105 | |
| 106 | func TestInvalidDataTypesShowError(t *testing.T) { |
| 107 | t.Run("Integer", func(t *testing.T) { InvalidDataTypeShowsError(t, "integer") }) |
| 108 | t.Run("Number", func(t *testing.T) { InvalidDataTypeShowsError(t, "number") }) |
| 109 | t.Run("Boolean", func(t *testing.T) { InvalidDataTypeShowsError(t, "boolean") }) |
| 110 | } |
| 111 | |
| 112 | func InvalidDataTypeShowsError(t *testing.T, datatype string) { |
| 113 | definition := ` |
nothing calls this directly
no test coverage detected