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

Function TestPrettyPrintVarLengthListLike

cpp/src/arrow/pretty_print_test.cc:832–918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830
831template <typename TypeClass>
832void TestPrettyPrintVarLengthListLike() {
833 using LargeTypeClass = typename TypeTraits<TypeClass>::LargeType;
834 auto var_list_type = std::make_shared<TypeClass>(int64());
835 auto var_large_list_type = std::make_shared<LargeTypeClass>(int64());
836
837 static const char* ex = R"expected([
838 [
839 null
840 ],
841 [],
842 null,
843 [
844 4,
845 6,
846 7
847 ],
848 [
849 2,
850 3
851 ]
852])expected";
853 static const char* ex_2 = R"expected( [
854 [
855 null
856 ],
857 [],
858 null,
859 [
860 4,
861 6,
862 7
863 ],
864 [
865 2,
866 3
867 ]
868 ])expected";
869 static const char* ex_3 = R"expected([
870 [
871 null
872 ],
873 ...
874 [
875 2,
876 3
877 ]
878])expected";
879 static const char* ex_4 = R"expected([
880 [
881 null
882 ],
883 [],
884 null,
885 [
886 4,
887 6,
888 7
889 ],

Callers

nothing calls this directly

Calls 4

ArrayFromJSONFunction · 0.85
PrettyPrintOptionsFunction · 0.85
CheckStreamFunction · 0.85
CheckArrayFunction · 0.85

Tested by

no test coverage detected