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

Function TEST

cpp/src/arrow/integration/json_integration_test.cc:795–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793}
794
795TEST(TestJsonSchemaWriter, FlatTypes) {
796 std::vector<std::shared_ptr<Field>> fields = {
797 field("f0", int8()),
798 field("f1", int16(), false),
799 field("f2", int32()),
800 field("f3", int64(), false),
801 field("f4", uint8()),
802 field("f5", uint16()),
803 field("f6", uint32()),
804 field("f7", uint64()),
805 field("f8", float32()),
806 field("f9", float64()),
807 field("f10", utf8()),
808 field("f11", binary()),
809 field("f12", list(int32())),
810 field("f13", struct_({field("s1", int32()), field("s2", utf8())})),
811 field("f14", date32()),
812 field("f15", date64()),
813 field("f16", timestamp(TimeUnit::NANO)),
814 field("f17", time64(TimeUnit::MICRO)),
815 field("f18",
816 dense_union({field("u1", int8()), field("u2", time32(TimeUnit::MILLI))},
817 {0, 1})),
818 field("f19", large_list(uint8())),
819 field("f20", null()),
820 field("f21", run_end_encoded(int16(), utf8())),
821 field("f22", run_end_encoded(int32(), utf8())),
822 field("f23", run_end_encoded(int64(), utf8())),
823 field("f24", list_view(int32())),
824 field("f25", large_list_view(uint8())),
825 };
826
827 auto schema = ::arrow::schema(fields);
828 TestSchemaRoundTrip(schema);
829}
830
831template <typename T>
832void PrimitiveTypesCheckOne() {

Callers

nothing calls this directly

Calls 15

listFunction · 0.85
struct_Function · 0.85
dense_unionFunction · 0.85
large_listFunction · 0.85
run_end_encodedFunction · 0.85
list_viewFunction · 0.85
large_list_viewFunction · 0.85
TestSchemaRoundTripFunction · 0.85
TestArrayRoundTripFunction · 0.85
ArrayFromJSONFunction · 0.85
GetBitmapFromVectorFunction · 0.85
WrapFunction · 0.85

Tested by

no test coverage detected