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

Function CheckUIntWidth

cpp/src/arrow/util/int_util_test.cc:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40template <typename T>
41void CheckUIntWidth(const std::vector<T>& values, uint8_t expected_width) {
42 for (const uint8_t min_width : all_widths) {
43 uint8_t width =
44 DetectUIntWidth(values.data(), static_cast<int64_t>(values.size()), min_width);
45 ASSERT_EQ(width, std::max(min_width, expected_width));
46 width = DetectUIntWidth(values.data(), nullptr, static_cast<int64_t>(values.size()),
47 min_width);
48 ASSERT_EQ(width, std::max(min_width, expected_width));
49 }
50}
51
52template <typename T>
53void CheckUIntWidth(const std::vector<T>& values, const std::vector<uint8_t>& valid_bytes,

Callers 1

TESTFunction · 0.85

Calls 3

DetectUIntWidthFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected