| 341 | }; |
| 342 | |
| 343 | TEST_F(TestSchemaExport, Primitive) { |
| 344 | TestPrimitive(int8(), "c"); |
| 345 | TestPrimitive(int16(), "s"); |
| 346 | TestPrimitive(int32(), "i"); |
| 347 | TestPrimitive(int64(), "l"); |
| 348 | TestPrimitive(uint8(), "C"); |
| 349 | TestPrimitive(uint16(), "S"); |
| 350 | TestPrimitive(uint32(), "I"); |
| 351 | TestPrimitive(uint64(), "L"); |
| 352 | |
| 353 | TestPrimitive(boolean(), "b"); |
| 354 | TestPrimitive(null(), "n"); |
| 355 | |
| 356 | TestPrimitive(float16(), "e"); |
| 357 | TestPrimitive(float32(), "f"); |
| 358 | TestPrimitive(float64(), "g"); |
| 359 | |
| 360 | TestPrimitive(fixed_size_binary(3), "w:3"); |
| 361 | TestPrimitive(binary(), "z"); |
| 362 | TestPrimitive(large_binary(), "Z"); |
| 363 | TestPrimitive(utf8(), "u"); |
| 364 | TestPrimitive(large_utf8(), "U"); |
| 365 | TestPrimitive(binary_view(), "vz"); |
| 366 | TestPrimitive(utf8_view(), "vu"); |
| 367 | |
| 368 | TestPrimitive(smallest_decimal(8, 4), "d:8,4,32"); |
| 369 | TestPrimitive(smallest_decimal(16, 4), "d:16,4,64"); |
| 370 | TestPrimitive(decimal128(16, 4), "d:16,4"); |
| 371 | TestPrimitive(decimal256(16, 4), "d:16,4,256"); |
| 372 | |
| 373 | TestPrimitive(smallest_decimal(8, 0), "d:8,0,32"); |
| 374 | TestPrimitive(smallest_decimal(15, 0), "d:15,0,64"); |
| 375 | TestPrimitive(decimal128(15, 0), "d:15,0"); |
| 376 | TestPrimitive(decimal256(15, 0), "d:15,0,256"); |
| 377 | |
| 378 | TestPrimitive(smallest_decimal(8, -4), "d:8,-4,32"); |
| 379 | TestPrimitive(smallest_decimal(15, -4), "d:15,-4,64"); |
| 380 | TestPrimitive(decimal128(15, -4), "d:15,-4"); |
| 381 | TestPrimitive(decimal256(15, -4), "d:15,-4,256"); |
| 382 | } |
| 383 | |
| 384 | TEST_F(TestSchemaExport, Temporal) { |
| 385 | TestPrimitive(date32(), "tdD"); |
nothing calls this directly
no test coverage detected