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

Method SetUp

cpp/src/arrow/util/fixed_width_test.cc:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51 public:
52 void SetUp() override {
53 bool_array_array_ = ArrayFromJSON(boolean(), "[true, false, null]");
54 int_array_array_ = ArrayFromJSON(int32(), "[1, 0, null]");
55 fsl_bool_array_ = ArrayFromJSON(fsl(2, boolean()), "[[true, false]]");
56 fsl_int_array_ = ArrayFromJSON(fsl(2, int32()), "[[1, 0], [2, 3]]");
57 fsl_int_nulls_array_ = ArrayFromJSON(fsl(2, int32()), "[[1, 0], null, [1, 2]]");
58 fsl_int_inner_nulls_array_ =
59 ArrayFromJSON(fsl(2, int32()), "[[1, 0], [2, 3], [null, 2]]");
60 dict_string_array_ =
61 ArrayFromJSON(dictionary(int32(), utf8()), R"(["Alice", "Bob", "Alice"])");
62 }
63};
64
65TEST_F(TestFixedWidth, IsFixedWidth) {

Callers

nothing calls this directly

Calls 2

ArrayFromJSONFunction · 0.85
dictionaryFunction · 0.50

Tested by

no test coverage detected