MCPcopy Create free account
hub / github.com/apache/arrow / TEST_F

Function TEST_F

cpp/src/arrow/c/bridge_test.cc:343–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341};
342
343TEST_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
384TEST_F(TestSchemaExport, Temporal) {
385 TestPrimitive(date32(), "tdD");

Callers

nothing calls this directly

Calls 15

fixed_size_binaryFunction · 0.85
smallest_decimalFunction · 0.85
decimal256Function · 0.85
month_intervalFunction · 0.85
month_day_nano_intervalFunction · 0.85
day_time_intervalFunction · 0.85
listFunction · 0.85
large_listFunction · 0.85
fixed_size_listFunction · 0.85
list_viewFunction · 0.85
large_list_viewFunction · 0.85
struct_Function · 0.85

Tested by

no test coverage detected