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

Function TEST_F

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

Source from the content-addressed store, hash-verified

63};
64
65TEST_F(TestFixedWidth, IsFixedWidth) {
66 auto arr = ArraySpan{*bool_array_array_->data()};
67 // force_null_count doesn't matter because nulls at the top-level
68 // of the array are allowed by IsFixedWidthLike.
69 ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/false));
70 ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/true));
71
72 ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/false, NotInt32));
73 ASSERT_FALSE(IsFixedWidthLike(arr, /*force_null_count=*/false, NotBool));
74
75 arr = ArraySpan{*int_array_array_->data()};
76 ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/false));
77 ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/true));
78 ASSERT_TRUE(IsFixedWidthLike(arr, /*force_null_count=*/false, NotBool));
79}
80
81TEST_F(TestFixedWidth, IsFixedWidthLike) {
82 auto arr = ArraySpan{*fsl_bool_array_->data()};

Callers

nothing calls this directly

Calls 6

fixed_size_binaryFunction · 0.85
FixedWidthInBytesFunction · 0.85
FixedWidthInBitsFunction · 0.85
IsFixedWidthLikeFunction · 0.70
dictionaryFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected